|
Boost Users : |
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2006-09-18 11:13:34
Hi,
alexmark wrote:
> I have the problem with VC8 release build (all release build options - by
> default, i.e., optimization is "Maximize speed /O2" and so on).
> A run of "repro" output executable finishes with the exception on attempt to
> read data from address 0.
>
> I noticed it for boost::interprocess (and boost::shmem too) allocators of
> type:
> - node_allocator
> - cached_node_allocator
> and not to:
> - allocator
> - private_node_allocator
>
> The way out I found (for "problematic" allocator types) is to set additional
> compiler option "/Og-" (already declared deprecated).
> With VC7.1 it all is ok for any allocator type w/o setting /Og- or any other
> additional options.
>
> Have anyone noticed this problem? Where the problem originates from? VC8
> optimization specifics (NRVO is affected by /Og option)?
> Or smth. wrong in "repro" code?
> Thanks.
The code seems correct. I will try to investigate this as soon as I have
a bit of time. Thanks for the report!
Ion
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net