Hi, Forget about everything writing above. This is a problem due to the code generation of openscenegraph not mathching the applicaiton code generation for example, openscenegraph was generated as multi-threaded debug DLL (/MDd) while my code was being generated as Multi-threaded debug (/MT). Even though opensencegraph was built as static, the code generation was set to use the Dynamic C runtime while my code was using the Static C runtime. At first, this did not cause any issue since the functions has the same name, the problem is when you call new or delete. If i call new to create an openscenegraph object from my code which is using the static runtime lib (LIBCMTD.lib) and then destroyed that same object which will call the destructor whitin openscenegraph which is using the Dynamic C runtime (MSVCRTD.lib), this would cause the exception because the new and delete will be allocation/deallocating from diffrents memory block. so you would allocate memmory for a geode for exemple and endup deleting a unkown block of memory.
sorry if i not clear enough Cheers, Renato ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45944#45944 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

