Hi, I'm trying to use the OSG engine with console application that also requires the MFC (at list part of it), anyway, as soon as I include the afx.h file, memory leaks are appearing. The memory leaks are caused by global variables that appear in the OSG libraries. (some of them are RenderBin, DisplayProperties and others), all the variables that I manually allocate in the code, are freed correctly. When I don't use the MFC (and comment out the relevant code) the memory leaks disappear. I think it has something to do with redefinition of the new and delete operators when using MFC, but I couldn't figure it out.
Thanks, Guy.
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
