What Should i Clean?

Blitz3D Forums/Blitz3D Programming/What Should i Clean?

Hello. i am running into a big problem with my game. It is almost finished, but at random times it gives me a memory access violation in random points of the code.

I think the problem is that i use ode, blitzplay, single surface libs, and of course my own entities, brushes, textures, etc...

The problem comes when i clean all and i want to start the game again.

I close ODE world, i call BP_ENdSession, i call ClearWorld, i delete all the types, i change the Resolution of the screen to force the clean of video memory...

What more should i free, clean, destroy?