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.