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

Voerman, L. l.voerman at rug.nl
Fri Apr 20 00:17:37 PDT 2018


I suspect you are mixing debug and release builds.
Basic guess is that you build osg in release and are trying to run a debug
build of your main application. Try a release or RelWithDebinfo build.
Regards, Laurens.

On Thu, Apr 19, 2018 at 9:33 PM, Mark Jablin <jablin at bridgetech-laramie.com>
wrote:

> Robert,
>
> That doesn't solve the problem.
>
> My log file handler:
>
>
> Code:
> class LogFileHandler : public osg::NotifyHandler
> {
> public:
>    LogFileHandler(const std::string& file)
>    {
>       m_log.open(file.c_str());
>    }
>    virtual ~LogFileHandler() { m_log.close(); }
>    virtual void notify(osg::NotifySeverity severity,
>       const char* msg)
>    {
>       m_log << msg;
>    }
> protected:
>    std::ofstream m_log;
> };
>
>
>
> I took that out of OpenSceneGraph 3.0 Beginner's Guide.
>
> I'm using OSG 3.4.1.
>
> Thanks for your help.
>
> Mark
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=73457#73457
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180420/9be9b6e5/attachment.html>


More information about the osg-users mailing list