Thanks Martin Naylor, I found my problem, it is exactly what you said~I linked with vs2005 lib in VS2008. After I compile OSG in VS2008, this problem has been solved ~
Thanks for all concerning about this stupid question. Nan Martin Naylor wrote: > Hi Nan, > I don't believe its a bug in OSG itself, it's the stupid Microsoft debug > libraries. > I suspect you are linking against the third party libraries built for > VS2005, hence its works ok in debug mode. > It's certainly worth applying SP1 for VS2008, but you also must make sure > you linking against the third party libraries built with the version of VS > you > are using. > You could download the libs for vs2008 and use those and see if it > builds/runs ok in debug mode? > > Let us know how it goes. > > Cheers > > Martin. > > > -----Original Message----- > From: > [mailto:] On Behalf Of Nan WANG > Sent: 09 February 2011 19:51 > To: > Subject: pUserData crash when run .exe in debug or release > version > > Hi, everyone: > > When I compile osg2cpp.cpp (from example folder) in VS2005 sp1, both debug > and relase version are correct. No problem of running them. > > But when I tried with VS2008, both debug and release version stopped by an > error: Expression: _CrtIsValidHeapPointer(pUserData) > > Looks like: > > [Image: http://i53.tinypic.com/2yz0kl3.jpg ] > > BTW: in VS2008, in release version, running .exe file without VisualStudio > IDE is ok....but still some errors. > > What is the problem? Who to fix this bug? Install SP1 for VS2008? > > Thank you! > > Cheers, > Nan > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=36506#36506 > > > > > > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ------------------ > Post generated by Mail2Forum ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36525#36525 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

