[osg-users] Unhandled exception at 0x6F650A62 (msvcr100.dll) in *.exe: 0xC0000005: Access violation reading location 0x00454000.

145 views
Skip to first unread message

Race Maine

unread,
Nov 7, 2012, 9:32:58 PM11/7/12
to osg-...@lists.openscenegraph.org
Hi,

I am working with OpenSceneGraph, and I keep running into this violation issue that I would appreciate some help with. The problem is with the particular line below which happens to be the first in my main function.


Code:
osg::ref_ptr<osg::Node> bench = osgDB::readNodeFile("Models/test.IVE");



I have my models folder right in my directory. The error is as below.

Unhandled exception at 0x68630A6C (msvcr100.dll) in OSG3D.exe: 0xC0000005: Access violation reading location 0x00421000.

And this is where the problem seems to be coming up.


Code:
/** Read an osg::Node from file.
* Return valid osg::Node on success,
* return NULL on failure.
* The osgDB::Registry is used to load the appropriate ReaderWriter plugin
* for the filename extension, and this plugin then handles the request
* to read the specified file.*/
inline osg::Node* readNodeFile(const std::string& filename)
{
return readNodeFile(filename,Registry::instance()->getOptions());
}




Please help me fix this problem. Any help will be appreciated.
Thank you!
Cheers,
Race

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51008#51008





_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Robert Osfield

unread,
Dec 10, 2012, 10:11:01 AM12/10/12
to osg-...@lists.openscenegraph.org
Hi Race?

The most common cause of crashes under windows is that the MS compiler is crap and can't handle mixing runtime and debug libs or handle different memory allocators used in different libs.  So check that all your libs are built the same or just move to a more developer friendly platform.

Robert.
Reply all
Reply to author
Forward
0 new messages