Panda3D and load_model

I am new to panda3d and am trying the hello world.

I have gotten the program to run with just:
PandaFramework framework;
framework.open_framework(argc, argv);
WindowFramework *window = framework.open_window();

framework.main_loop();
framework.close_framework();
return 0;
however, if I add in :
NodePath environt = window->load_model(framework.get_models(), "panda-model");

environt.reparent_to(window->get_render());
environt.set_scale(0.25, 0.25, 0.25);
environt.set_pos(-8, 42, 0);

beofre the main_loop(), it won't compile. I have the panda-model.egg.pz in every folder of my c++ project but evertime my program breaks on :

environt.reparent_to(window->get_render());

The excat message is: Unhandled exception at 0x0152a317 in Irr.exe: 0xC00001A5: An invalid exception handler routine has been detected.

It compiles fine the only wraning being that it can't find the pdb files but that doesn't matter.

Any ideas?

Btw, im using MSVC++ 2010 and panda3d 1.7.2
Topic archived. No new replies allowed.