[HELP] TreeCollision file reading problem?

ervilha

16-10-2007 04:12:20

Well, i'm going to try to explain my problem wich is a bit strange.

I'm using the code presented in here to create my terrain geometry collision from the terrain information, or from a previous saved file.

When running the game in the debug mode this code works fine and i can load and unload and repeat this process n times without having problems.

When running in release mode, the first time i load the terrain, the collision files are created and the application run's just fine, but in the release mode after loading the terrain and it's physic's it just crash. The next image show the message and state of the microsoft visual studio:



I've tried to track down the error, but i couldn't find any thing in my code that could crash my application.

Any ideas?

walaber

16-10-2007 18:21:51

usually if something works in debug mode, but not in release mode, it is because you have an uninitialized variable somewhere in your code.

are you sure you are initializing all variables when they are created? (this includes initializing all pointers to "null")

ervilha

22-10-2007 23:18:02

Sorry for the late post, but i've searched for uninitialized variables and pointers, i've found some, but the problem haven't been solved that way.

I "solved" the problem by creating new collision files over the old ones (i've commented the folder for collision files in resources.cfg file).

Never the less, this was a school project that was presented and delivered on 17/10/2007.

This was my first game i've made. I will try to post a demo in the Ogre Forums during this week.

Thanks for all the help given!