Click here to Skip to main content
15,891,704 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I need to Dispose WebCam object after capture completed.. any one can help me in this issue..
Posted

1 solution

It all depends on WebCam software you use. If this is something correct, it will either require no disposing (I would say, unlikely), or implement the interface System.IDisposable, http://msdn.microsoft.com/en-us/library/system.idisposable.aspx[^].

—SA
 
Share this answer
 
Comments
Member 8169176 31-Jan-13 2:35am    
No Already i have used System.IDisposable but still webcam is not disposed, Is there any other way to dispose webcam object..
Sergey Alexandrovich Kryukov 31-Jan-13 2:44am    
If it is not disposed, the component is wrong. However, how do you know it's not disposed? Are you sure you used it correctly?

Come on, search CodeProject article, you will find a number of really good correct solutions.
—SA
Member 8169176 31-Jan-13 3:44am    
I am using a third party exe to capture my screen and webcam, after completing the capture the wecam is still on..
Sergey Alexandrovich Kryukov 31-Jan-13 10:29am    
Well, the please address to this 3rd party, why asking a question here? If could be anything; and you did not even provide a reference.
And you did not even answer my question, how did you exactly "used" Dispose, and why do you think the camera wasn't disposed. If you think that Dispose should turn of power (or something), explain why. Also explain why would you like to switch camera off and what do you observe...
—SA
Member 8169176 1-Feb-13 5:13am    
I asked them, They told me to change a webcam, and they did not supported all the webcam, But in my project i need to support all the webcam's thats why i asked here...

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