Error GDI+

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