Skip to main content

Hello,

I have a problem with a small application that I have that reads the citizen card using the chip.
The card is read, the data is imported, but when the photo image is written it gives an error: "Generic error in GDI+" (I send the error as an attachment).
I have two computers where one of them records the photo without any problem and the other gives this error.



The instruction that gives the error is as follows:
invoke bitmapx::Save(ccPictureFilePath, type ImageFormat::Jpeg)

where bitmapx using class System.Drawing.Bitmap.


I'm waiting for your notices.

Best regards
Alberto Ferraz

Hello,

I have a problem with a small application that I have that reads the citizen card using the chip.
The card is read, the data is imported, but when the photo image is written it gives an error: "Generic error in GDI+" (I send the error as an attachment).
I have two computers where one of them records the photo without any problem and the other gives this error.



The instruction that gives the error is as follows:
invoke bitmapx::Save(ccPictureFilePath, type ImageFormat::Jpeg)

where bitmapx using class System.Drawing.Bitmap.


I'm waiting for your notices.

Best regards
Alberto Ferraz

Alberto,

There are lots of articles online with possible causes. Maybe this will give you some suggestions ?

stackoverflow.com/.../a-generic-error-occurred-in-gdi-at-system-drawing-image-save