Re: [osg-users] bad_alloc exception generated

2011-01-22 Thread Mukund Keshav
Hi, The problem was, i had linked the release libraries but was building in Debug mode. Solved it. Thanks for the support :) Mukund -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35896#35896 ___ o

Re: [osg-users] bad_alloc exception generated

2011-01-22 Thread Mukund Keshav
Hi Robert, Thanks for the reply. Yes, im working on Windows with VS. Well, i changed the linker settings to link with multi-threaded DLL. But it did not fix the problem. im being pointed to this: inline osg::Node* readNodeFile(const std::string& filename) { >>> return readNodeFile(filename

Re: [osg-users] bad_alloc exception generated

2011-01-22 Thread Robert Osfield
Hi Mukund, The code segment is fine, as to the actual cause we can only guess as we don't have your machine/OSG build and a your debuger in front of us. My best guess would be a build or linking issue. I presume you are working under Windows with VisualStudio, and if this is the case the your ar

Re: [osg-users] bad_alloc exception generated

2011-01-21 Thread Mukund Keshav
Here is the code: Code: #include #include int main( int, char ** ) { osgViewer::Viewer viewer; viewer.setSceneData( osgDB::readNodeFile( "cow.osg" ) ); return viewer.run(); } Thanks, Mukund -- Read this topic online here: http://forum.openscenegraph.org/viewto

Re: [osg-users] bad_alloc exception generated

2011-01-21 Thread Mukund Keshav
Hi Roland, Thanks for the reply. Yes, i had some problem with posting the code. i tried editing but editing was disabled since my real name and username was the same. im not able to add code tags. im getting this: >>You must have 2 posts before you can post URL's/Links. il paste the code in my

Re: [osg-users] bad_alloc exception generated

2011-01-21 Thread Roland Smeenk
Hi Mukund, I believe your post is missing the code you wanted to include. kind regards, Roland -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35881#35881 ___ osg-users mailing list osg-users@lists.

[osg-users] bad_alloc exception generated

2011-01-21 Thread Mukund Keshav
Hi, i just installed OpenSceneGraph and i tried running this piece of code: im getting a bad_alloc exception. Could anyone point where the error is? Thank you! Cheers, Mukund -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35878#35878 __