Unhandled Exception/Missing Graphics
Posted: Fri Jan 23, 2004 5:31 am
I am experiencing a problem when a DrawLine tool is active and a user has a context menu displayed at the same time as a DrawLineItem is selected. The problem occurs when the user accidentally clicks the left mouse button and moves the mouse slightly while the right mouse button is held down.
The application then generates an unhandled exception (object reference not set to an instance of an object) in DrawLine.DoMouseUp, then exits...
I know they are unusual circumstances, but it is happening repeatedly with a particular user with an unsteady hand. He, unfortunately, is having to restart the application many times per day and getting terribly frustrated.
The only way I have been able to catch the exception is by surrounding Application.Run(...) with a try... catch block. Needless to say, catching the exception at this point is just too late.
I was using the previous version of the TeeChart dll, and did not update out of fear of incompatibility between versions until this problem got out of hand.
Unfortunately, I am 'dead in the water' now because I updated to the most recent version and the Graphics3D.Graphics (System.Drawing.Graphics) property has been removed.
It has been necessary for us to use the Graphics object extensively to achieve our desired aesthetic results and has worked marvelously, until now...
1. Have you, by chance, added any exception handling to the DrawLine.DoMouseUp method?
2. Can you put the Graphics3D.Graphics property back so I can continue to use TeeChart in my app, or suggest another way to access the Graphics object?
Please help!
-Dave
The application then generates an unhandled exception (object reference not set to an instance of an object) in DrawLine.DoMouseUp, then exits...
I know they are unusual circumstances, but it is happening repeatedly with a particular user with an unsteady hand. He, unfortunately, is having to restart the application many times per day and getting terribly frustrated.
The only way I have been able to catch the exception is by surrounding Application.Run(...) with a try... catch block. Needless to say, catching the exception at this point is just too late.
I was using the previous version of the TeeChart dll, and did not update out of fear of incompatibility between versions until this problem got out of hand.
Unfortunately, I am 'dead in the water' now because I updated to the most recent version and the Graphics3D.Graphics (System.Drawing.Graphics) property has been removed.
It has been necessary for us to use the Graphics object extensively to achieve our desired aesthetic results and has worked marvelously, until now...
1. Have you, by chance, added any exception handling to the DrawLine.DoMouseUp method?
2. Can you put the Graphics3D.Graphics property back so I can continue to use TeeChart in my app, or suggest another way to access the Graphics object?
Please help!
-Dave