gdi+ removable device IO Safe problem
- by sxingfeng
I am using gdi+ for image format checking.
It is really surprising that gdi+
Image img(path);
does not throw exception when a device is removed.
for example, I am checking a list of image files on a removable device.
I plug the disk off,
Then My Application will crashed.
How can I avoid such problem?
Many Thanks!
I am using c++ gdi+ windows ,many thanks.