在C#应用程序中捕获图像时,如何克服网络摄像头变得僵硬的问题 [英] How do i overcome the problem of webcam getting stiff when i capture an image in my C# app

查看:65
本文介绍了在C#应用程序中捕获图像时,如何克服网络摄像头变得僵硬的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将网络摄像头并入了Windows应用程序(C#)中,有时在捕获图像时失败.我使用Windows7,它在第一次捕捉时工作正常,在第二次失败,并且可能会继续失败一段时间.任何人都可以告诉我如何克服这个问题.当它失败时,表单功能将不起作用,仅保留重新启动或停止调试的选项.

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.

推荐答案

听起来像锁定了声音.确保在创建的任何对象超出范围之前都对它们调用Dispose.要获得更多帮助,您需要发布一些代码.
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.


这篇关于在C#应用程序中捕获图像时,如何克服网络摄像头变得僵硬的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆