Hello Nan,
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?
First of all, what build of OSG is this? Did you build it yourself? Did
you download it?
Second, yes, you should install VS2008 SP1. There is no reason not to.
If you ever download a binary release of OSG for VS2008 it will have
been compiled with SP1, so you're asking for problems if you don't
install it.
That problem is generally caused by mixing different types of libraries
when linking your executable. So check your compiler settings as well.
Things that need to match are: runtime (/MD, /MDD, etc.) and
_HAS_ITERATOR_DEBUGGING (defaults to true in debug builds). If both your
debug and release builds are crashing with that type of error, perhaps
you've used debug OSG libs in a release build and vice versa? OTOH it
might be something else.
Check the forum or mailing list archives, this has been discussed a lot
in the past few years, and there was a thread about it about a week ago.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org