Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
4.40/5 (2 votes)
See more:
I incorporated web cam in my windows app (C#),sometimes it fails when i capture an image.I user Windows7,it works fine at first snap and fails the second time and may continue failing for a while. Can any body tell me how to overcome the problem. when it fails non of the form function will work leaving only the option to restart or stop debugging.
Posted
Comments
Sergey Alexandrovich Kryukov 21-Jul-11 2:34am    
Not enough information.
--SA
Herman<T>.Instance 21-Jul-11 3:57am    
with what object you capture the image (BinaryReader or something like that?)

1 solution

Sounds like it's locking up. Make sure you're calling Dispose on any objects you create before they go out of scope. For more help, you need to post some code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900