Click here to Skip to main content
13,046,045 members (46,040 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
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,[^].

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.
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...
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...

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.170713.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2017
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