AccessViolationException with Overlay


25-01-2010 20:56:31


I tried using the overlay class from the Wiki (

It works fine but ending the program creates an "AccessViolationException was unhandled" error.
I get the same error when trying to create my own overlays.
Overlays give me that error frequently even though the debug.overlay in the example app works fine. I managed to get that overlay in my app without any errors though..

Any idea why? Or would you have an example of a very simple C# overlay code that works without error?

Many thanks.