AlHal2
asked on
Application has generated an exception that could not be handled.
I have a program which reads and reformats text files. It's giving this message:
Application has generated an exception that could not be handled. Process ID=(4004), Thread ID=0x328(808)
It is quite long running and there could be multiple instances running at the same time. However they would not be using the same files at the same time.
What could be causing this error?
I'm using C#.net windows forms with visual Studio 2008.
Application has generated an exception that could not be handled. Process ID=(4004), Thread ID=0x328(808)
It is quite long running and there could be multiple instances running at the same time. However they would not be using the same files at the same time.
What could be causing this error?
I'm using C#.net windows forms with visual Studio 2008.
error handling is done with try catch
https://msdn.microsoft.com/en-us/library/0yd65esw.aspx
https://msdn.microsoft.com/en-us/library/0yd65esw.aspx
>>What could be causing this error?
Basically an error somewhere in your code. As Guy says you will need to do a lot more work to track it down by adding (more) error handling code.
Is there any more information in the windows event logs ? (Long shot but there might be something there to help locate where your code might be failing).
Basically an error somewhere in your code. As Guy says you will need to do a lot more work to track it down by adding (more) error handling code.
Is there any more information in the windows event logs ? (Long shot but there might be something there to help locate where your code might be failing).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks.
the error handling should then indicate what is is doing, which file it is handling etc.
the more precise the error handling is implemented, the simpler you can do debugging later.