Hi! I have just started to check out OpenSceneGraph as my employer asked me to. I am using Ms Visual Studio and C++.
I have no previous experience of osg (or any 3dgraphic programming) i decided to do the first basic tutorial (Basic geometry) on openscenegraph official homepage. ( not allowed to post the link )
It all looks easy enough but when i try to run the code, it can compile and link but and row 42: "pyramidFaceOne->push_back(0);" I get a memory failure of some kind. It breaks and I get the failuremessage:
"Unhandled exception at 0x7c812a5b (kernel32.dll) in test.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012f3f4.."
I have googled the problem over and over, without result, so please, can anyone tell me what i do wrong so i can continue to learn this.
And yes, i have copied the code right off the page.....
//Wannabe-programmer from sweden.
OpenSceneGraph problems
Started by Regen, Jun 19 2008 01:03 AM
1 reply to this topic


Sign In
Create Account

Back to top









