Form.Dispose()不起作用 [英] Form.Dispose() is not working

查看:218
本文介绍了Form.Dispose()不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我正在开发一个有多种形式的应用程序我的目标设备是intermec CN3与windows mobile 5.0作为操作系统
当大多数表格都有扫描条形码的对象时并将该字符串插入该类中的对象的文本框中:Intermec.DataCollection.BarcodeReader
在我完成表单的工作后,我调用Form.Dispose()并不是每个控件都被释放,我调用了Dispose()方法的隐含性对于我认为可以解决问题的每一个控件。
当我使用调试器时,我发现一些非常奇怪的事情,代码被执行来自我处理的对象!!!
任何人都可以帮助我! !

Hi guys,
Well I'm developing an application with many forms in it my target device is intermec CN3 with windows mobile 5.0 as the OS
When most of the forms have object which scans the barcode and insert the string in a textbox that object from the class:Intermec.DataCollection.BarcodeReader
After i finish working with the form i call Form.Dispose() not every control is released, I called the Dispose() method implicity for every control i thought that would solve the problem.
When i used the debugger I found something very strange thing the code was executed is from the Object that i disposed !!!
Can anyone help me !!!

推荐答案



您可能需要关闭并处理BarcodeReader对象。

希望这有助于。

保罗·迪斯顿
Hi,

You may need to close and dispose the BarcodeReader object.

Hope this helps.

Paul Diston


这篇关于Form.Dispose()不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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