
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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] Per conto di Igor R Inviato: giovedì 7 agosto 2008 11.43 A: boost-users@lists.boost.org 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@keywallet.com>:
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@googlemail.com> 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users