[osg-users] Memory problems in Windows/Visual Studio

Robert Osfield robert.osfield at gmail.com
Thu Apr 19 08:32:59 PDT 2018


HI Mark,

This is pretty odd, ref_ptr<> is pretty well tested over the years
(it's not far off two decades old now :-)  and is widely used under
Windows and all other platforms by many thousands of developers.  So
there has to be something astray with your setup.   How did you
configure the OSG when you built it?

What happens when you don't use your LogFileHandler?

Also what version of the OSG are you using?

Does this happen when using standard OSG example like osgviewer?

Robert.

On 19 April 2018 at 16:20, Mark Jablin <jablin at bridgetech-laramie.com> wrote:
> Hi,
>
> I'm just getting started with OpenSceneGraph and just working through some basic examples.  I'm running Windows 10 and using Visual Studio 17.  I'm building everything using x64.
>
> The problem occurs any time I use a ref_ptr.  All the examples I've run work properly until exiting the application, when I get  a deallocation error.
>
> I have attached my source code, the OSG debug output, and a screenshot of the error message.
>
> It seems like I have a setting wrong or maybe missed something when I configured OSG when installing it.  Does anyone have any ideas about where to start debugging this?
>
> Thank you!
>
> Mark
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=73445#73445
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/error_209.jpg
> http://forum.openscenegraph.org//files/main_675.cpp
> http://forum.openscenegraph.org//files/output_686.txt
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


More information about the osg-users mailing list