Re: [osg-users] [SOLVED] Deriving my own Effect/Technique class - heap damage error

2011-10-24 Thread matthias-schuetze
Hi there,

Some weeks ago, I posted my original problem, when deriving my own 
Effect/Technique class. I'm happy to add that both the heap damage error and 
the memory leak are solved, now. (In fact, there were some similar errors and I 
couldn't ignore or workaround them any more.)
It was not the mixing of debug and release binaries, but some incompatible 
compiler settings: My project compiled with /MT and /MTd respectively, while 
OSG links the C Runtime dynamically (/MD and /MDd respectively). Here are some 
forum threads which helped me to get the clue and describe in more detail which 
flags to regard:

http://forum.openscenegraph.org/viewtopic.php?t=7753
http://forum.openscenegraph.org/viewtopic.php?t=7644
http://forum.openscenegraph.org/viewtopic.php?t=2436

Hope, this will help others to save time and effort.

Cheers,
Matthias Schütze, Germany

___
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [SOLVED] Deriving my own Effect/Technique class - heap damage error

2011-10-24 Thread Jean-Sébastien Guay

Hi Matthias,


Some weeks ago, I posted my original problem, when deriving my own 
Effect/Technique class. I'm happy to add that both the heap damage error and 
the memory leak are solved, now. (In fact, there were some similar errors and I 
couldn't ignore or workaround them any more.)
It was not the mixing of debug and release binaries, but some incompatible 
compiler settings: My project compiled with /MT and /MTd respectively, while 
OSG links the C Runtime dynamically (/MD and /MDd respectively). Here are some 
forum threads which helped me to get the clue and describe in more detail which 
flags to regard:


Ah yes, the mixing debug and release argument is often an 
oversimplification of the actual problem, which is mixing incompatible 
runtimes. I make that terminology mistake very often... sorry...


Good to know you got to the bottom of it.

J-S
--
__
Jean-Sébastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.dyndns-web.com/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org