Example problem in Release mode

razali2k5

11-04-2010 00:50:07

I am on Windows 7 x64 and using VS 2008. I have just downloaded PagedGeometry 1.1.0

I have successfully compiled and ran the Example 8 in debug mode with no problem. The only unusual thing is that I am getting about 2 FPS on my 8800 GT. Anyway, I was hoping it was so slow because of all the debug stuff so I have tried getting release mode to work. In release mode it compiles just fine like the debug mode but when it starts it runs into problems.

Unhandled exception at 0x6ce558a3 in ForestDemo.exe: 0xC0000005: Access violation writing location 0x01311c17.
The debugger points to line 67 in PagedGeometry.h where the line is:
tempdir=""; // empty for current working directory

If I comment that out, I get this problem:
Unhandled exception at 0x6ce558a3 in ForestDemo.exe: 0xC0000005: Access violation writing location 0x01381c17.
And this time it is on line 202 of my main file (ForestDemo.cpp)
grass = new PagedGeometry(camera, 30);

Like I said, I do not have the problem in debug mode but I do in release. Any ideas?

I have also attached my Ogre.log file