[osg-users] Memory problems in Windows/Visual Studio
Mark Jablin
jablin at bridgetech-laramie.com
Thu Apr 19 12:33:21 PDT 2018
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
More information about the osg-users
mailing list