✅ A generic error occurred in GDI+.' -> Save Image Path
Hey, I been trying to making some face recognition using EMGU.CV, but I faces a problem which, when I'm trying to save the picture, which the cropped side (faces) so I could using that to face recognition in future, but when I'm trying to save it by binding to button1, it give me a problem -> System.Runtime.InteropServices.ExternalException: 'A generic error occurred in GDI+.' .
4 Replies
have u checked if the folder exists
also use Path.Combine instead of manually doing as its safer
alternatively instead of saving from the picturebox, can u try saving from a new object
usually that happens when it can't find the path to save or when GDI is still in use so having a different object to save can work in that case
Silly me! I spend my 20 minutes figure what's the problem, and the problem that, I was on different project folder, since the folder named similar, the only different its the dot at the end! and thank you for the advice and the answer, I would happly hear all the suggestion.
Use the /close command to mark a forum thread as answered
no worries 😉