I have used follwing link and i am getting Desktopcapturewithmouse if it is working fine but After some time(10min) it showing GDI+ error....... and stopped to take screenshots.... My OS is windows 7. And same problem in Windows XP also
http://www.codeproj开发者_JAVA技巧ect.com/KB/cs/DesktopCaptureWithMouse.aspx
Please give me a solution to make it as continuously.....
Did you check the comments on that CodeProject article? There seems to be a handle/memory leak in the CaptureCursor
routine, at lease on of the comment posters also provides a reworked version that eliminates the leak.
Could this or someother memory leak be the problem you are facing?
精彩评论