S
Simon Tamman {Uchiha Jax}
Now this is bugging me.
I just released software for a client and they have reported an unhandled
stack overflow exception.
My first concern is that the entirity of the UI and any threaded operations
are all within Try Catches to help me locate the problem and the origination
of any problem by specifiying an error code in the "Catch" section.
So theoretically this shouldn't have been possible (at which point we all
say "yeah, right...."(in a sarcastic manner)). However.......
I get the data files from the client and try to run those files in my
install (from an .msi) of the application. I get the same unhandled
exception.
However when I then run the program within Visual Studio (which has not been
changed since the .msi was produced) I don't get an unhandled error. I get
my error code instead!
The call originates in a seperate thread, this thread fires an event which a
form has subscribed to. The form eventhandler calls the data object which is
stored within a .dll and initiates the process that causes the exception.
The method in the seperate thread where the event is fired is Try Catched,
the method in the form that utilises the data object is Try Catched. The
method within the data object itself is NOT Try-Catched.
Is it the case that VS studio is hiding the true results of such an
exception? If a thread executes a method in a .dll and the .dll method calls
throws an exception will that not be caught by a Try Catch in the
originating method?
Please advise, as this confuses the hell out of me.
I just released software for a client and they have reported an unhandled
stack overflow exception.
My first concern is that the entirity of the UI and any threaded operations
are all within Try Catches to help me locate the problem and the origination
of any problem by specifiying an error code in the "Catch" section.
So theoretically this shouldn't have been possible (at which point we all
say "yeah, right...."(in a sarcastic manner)). However.......
I get the data files from the client and try to run those files in my
install (from an .msi) of the application. I get the same unhandled
exception.
However when I then run the program within Visual Studio (which has not been
changed since the .msi was produced) I don't get an unhandled error. I get
my error code instead!
The call originates in a seperate thread, this thread fires an event which a
form has subscribed to. The form eventhandler calls the data object which is
stored within a .dll and initiates the process that causes the exception.
The method in the seperate thread where the event is fired is Try Catched,
the method in the form that utilises the data object is Try Catched. The
method within the data object itself is NOT Try-Catched.
Is it the case that VS studio is hiding the true results of such an
exception? If a thread executes a method in a .dll and the .dll method calls
throws an exception will that not be caught by a Try Catch in the
originating method?
Please advise, as this confuses the hell out of me.