Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I detect whether the Bitmap::Save method fails because of an I/O error? The method returns void and neither of the two exceptions it raises (ArgumentNullException and ExternalException) seem to cover an I/O failure because of, say, trying to write to a read-only CD/DVD or not enough space on a disc for the saved file. Thanks for any help.

Hugh McIntyre.
Posted
Comments
SnowHow 23-Aug-10 14:09pm    
Bitmap::Save should return a status code enumeration....

Step throught it...
HAJM 24-Aug-10 14:49pm    
Bitmap::Save doesn't return a status code, it returns void. However I have solved the problem using GetlastError() - see my amended original post.

Thanks anyway for taking the trouble to reply to my question.

Hugh McIntyre.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900