IOException - No message

  • Thread starter Thread starter Jon Brunson
  • Start date Start date
J

Jon Brunson

Why when you get an IOException in the CF do you not get a message along
with it? You know "Disk Full", or "File in use" or whatever. It's really
annoying
 
The exception has a string associated with it. You can catch the exception
and look at that. Are you wondering about the message box that the run-time
displays when an uncaught exception occurs and the program is going to be
terminated?

Paul T.
 
No, I catch for an IOException, and write it to an error log (XML) file
- that all works fine, but ex.Message (and ex.ToString()) just returns
IOException. Not highly useful.

This is in CF1-SP3, does it get better in CF2?
 
Hmmm. Can you catch it in the debugger and see if there's any other
information, a native error code, for example, in the exception?

Paul T.
 
No, I catch for an IOException, and write it to an error log (XML) file -
that all works fine, but ex.Message (and ex.ToString()) just returns
IOException. Not highly useful.

This is in CF1-SP3, does it get better in CF2?

String resources are in the System.SR.dll.
Try referencing it in your project.
 
I've tried that, to no avail. There's just nothing! Not even an
InnerException.
So annoying.
 
Back
Top