Boost logo

Boost :

From: Sean Huang (huangsean_at_[hidden])
Date: 2007-10-24 18:50:58


> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-
> bounces_at_[hidden]] On Behalf Of Ion Gaztañaga
>
> While I manage to get access to a Win64 platform, can you give some
> hint
> on which assertions are failing?
>
Ion,
Looks like this following code in mapped_region.hpp (line 237):
   if(!mhandle.is_shm){
      //Update mapping size if the user does not specify it
      if(size == 0){
         __int64 total_size;
 
if(!winapi::get_file_size(detail::file_handle_from_mapping_handle(mappingge
t_mapping_handle()), total_size)){
            error_info err(winapi::get_last_error());
            throw interprocess_exception(err);
         }
         if(total_size > (__int64)((std::size_t)(-1))){
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            error_info err(size_error);
            throw interprocess_exception(err);
         }
         size = static_cast<std::size_t>(total_size - offset);
      }

Causes an exception to be thrown. There is an access violation during stack
unwinding (unfortunately, I did not have time to track that down, you might
want to force an exception in the 32-bit version to see the problem).

Regards,

Sean


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk