views:

142

answers:

1

When programming in sdl.net on close my app will crash with a vshost32-clr2 error. It stops happening (sometimes) when i close visual studio and reopen the project.

Does anyone have any idea why this happens?

-edit-

More info. I can run the project, close it, run and hit escape right away (to close it) without problems. Repeat to get a crash and repeat again and not get it. It happens randomly even when i run the same code paths (theres no random generation and i am sitting in an empty loop that only does surface.blt (on one image, one text and a fill for the background).

One night i had a good build that never crashed. I committed it and marked noncrash. The next day it came back so i reverted it and it was still there. I have no idea what it is or if all the info here i gave is indeed correct.

Windows7/SDL.NET 6.1.0(current)/msvs 2010rc. A crash happens outside the IDE as well.

A: 

Sorry, this is not an answer, but I'm also having this problem. Did you ever manage to solve it?

Andrei
No. I cant remember if i am deleting the main surface or not but it appears not to give debugging problems and i just use the escape key to return to main screen so the user isnt going to be running this game repeatedly and noticing the crash.
acidzombie24