Hi, i got an issue with mi Windows Form Application. Im capturing images with my webcam and the program crashes when im trying to clone a bitmap with the bitmap.Clone() method. So i get this unhandled error: " The object is in use ". A try catch doesn't do the deal because i need that my picturBox to refresh images, so the problem (object is in use)still goes on.
As a suggestion, visual studio recommends me that: If i am using a Graphics objects after de GetHdc method, i have to call the ReleaseHdc method.
Here's a link to a photo of the problem
I dont have a clue of where i use a GetHdc method, i have never explicitly called it on my code.
I have to release something that i dont know.
I appreciate any help.
Closed because the post is not clear, or is incomplete and has not been phrased in a way that allows it to be fully understood..
on Sunday, April 21, 2013 3:45am