I have implemented a ruler on the map that draws a line from a first reference point to the mouse location and shows the distance in KM while dragging the mouse.
This works fine, but sometimes after moving the mouse and dragging the line, the process stops and I get this message:
[My Process name].exe has stopped working
A problem caused the program to stop working correctly. Please close the program.
I looked at the Windows Logs, and saw the details of the Application Error:
Faulting application name: [My Process name].exe
Faulting module name: RuntimeCoreNETDesktop.dll, version: 10.2.7.1234, time stamp: 0x56afd702
Exception code: 0xc0000005
Fault offset: 0x0000000000e01b74
My process is running at 64 bit mode on a Windows 7 computer.
I tried catching the exception and tried catching uncaught exceptions of the AppDomain,
Nothing helps and my process is closed without a proper message or way to recover.