Crash if OpenGL... in debug mode only?

pra

28-06-2007 20:44:30

if I select OpenGL and try to load my PLSM2 scene, (I select it in my GUI) it just crashes with
Unhandled exception at 0x05230c6a in lol4edit.exe: 0xC0000005: Access violation reading location 0x00000000.
and points at the line
mRoot->startRendering();
last log entries are
21:38:29: Texture: alpes.Base.1.1.png: Loading 1 faces(PF_R8G8B8,1024x1024x1) with 10 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,1024x1024x1.
21:38:29: Texture: Detail3.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.

and call stack:
05230c6a()
nvoglnt.dll!697afb72()
[Frames below may be incorrect and/or missing, no symbols loaded for nvoglnt.dll]
nvoglnt.dll!697b0980()
nvoglnt.dll!697b326d()
nvoglnt.dll!69503192()
RenderSystem_GL_d.dll!02e1254d()
OgreMain_d.dll!01225865()
OgreMain_d.dll!0122430e()
OgreMain_d.dll!01184b90()
OgreMain_d.dll!011848c3()
OgreMain_d.dll!012247f4()
OgreMain_d.dll!01224bc1()
OgreMain_d.dll!01224a6c()
OgreMain_d.dll!01221b12()
OgreMain_d.dll!01221781()
OgreMain_d.dll!0121e8b5()
OgreMain_d.dll!00d7a62f()
OgreMain_d.dll!01343bd2()
OgreMain_d.dll!011a85c5()
OgreMain_d.dll!011b01bb()
OgreMain_d.dll!011b0157()
OgreMain_d.dll!0119e4e8()
OgreMain_d.dll!012021dd()
OgreMain_d.dll!011ffbbe()
OgreMain_d.dll!011ffb21()
> lol4edit.exe!StandardApplication::go() Line 123 + 0x11 bytes C++
lol4edit.exe!WinMain(HINSTANCE__ * hInst=0x00400000, HINSTANCE__ * __formal=0x00000000, char * strCmdLine=0x00151f0a, HINSTANCE__ * __formal=0x00000000) Line 60 + 0xb bytes C++
lol4edit.exe!__tmainCRTStartup() Line 589 + 0x35 bytes C
lol4edit.exe!WinMainCRTStartup() Line 414 C
kernel32.dll!7c816fd7()

It works without PLSM2, and it worked before I started trying different stuff to fix a bug causing random crashes on scene change (I have make a thread about this one, too, I guess...). I THINK it has something to do with the materials, as I tried to copy the scripts/programs/textures from ogresdk/plsm2 media before


despairing,
pra


EDIT: it seems this happens in debug mode only o_O
i'm rebuilding the debug version atm, would be very embarrasing if the error disappears afterwards
:oops:
edit2: no, rebuild didn't change anything