Click here to Skip to main content
12,395,548 members (60,738 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# .NET
Hi,
I need to Dispose WebCam object after capture completed.. any one can help me in this issue..
Posted 30-Jan-13 18:20pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
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..
   
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...
   
OK, from your description, it's not apparent that anything is wrong...
—SA

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100