I use try and catch to catch unexpected errors in my applications. But I cannot catch those "application error"-messages that appear when the program tries to write in forbitten memory locations.

Is there a way to catch them?