Link to home
Start Free TrialLog in
Avatar of AlHal2
AlHal2Flag for United Kingdom of Great Britain and Northern Ireland

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.
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

unless you add error handling into your application to give a more precise error, it will be impossible to help you on this one.

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.
>>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).
ASKER CERTIFIED SOLUTION
Avatar of Easwaran Paramasivam
Easwaran Paramasivam
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AlHal2

ASKER

thanks.