Boost logo

Boost Users :

From: Andrea Denzler (andrea_at_[hidden])
Date: 2008-08-07 05:50:59


Crash under release but not debug can be due to unintialized data or memory
corruption with different behavior under debug/release.

Since the release build use different optimizations you may try a release
build but adding also the debug info.

-----Messaggio originale-----
Da: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] Per conto di Igor R
Inviato: giovedì 7 agosto 2008 11.43
A: boost-users_at_[hidden]
Oggetto: Re: [Boost-users] [boost-users] crash of visual studio compilerwith
boost bind

Note that sometimes VS2005 compiler crashes when you've got some
mismatch in placeholder count, but if it compiles well in debug-mode,
then...it's really wierd.

By the way, it seems that in VS2005 the compiler heap is at maximum by
default.

2008/8/7, Ovanes Markarian <om_boost_at_[hidden]>:
> Oliver,
> please try increasing internal compiler heap. Please read about /Zm option
> in MSDN.
>
> Regards,
> Ovanes
>
>
>
> On Thu, Aug 7, 2008 at 10:59 AM, Oliver Kania
<kania.oliver_at_[hidden]>
> wrote:
> >
> >
> > Hello,
> > the following code makes the VC++ compiler (VS 2005) crash,
> > but only when I am trying a release build ! The debug builds work fine.
> >
> >
>
std::sort(l_vec.begin(),l_vec.end(),boost::bind(std::less<int>(),boost::bind
(&CLayer::GetPrio,_1),boost::bind(&CLayer::GetPrio,_2)));
>
> >
> > Where CLayer::GetPrio returns an integer.
> >
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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