Form.Dispose()不起作用

编程入门 行业动态 更新时间:2024-10-16 22:14:17
本文介绍了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()不起作用

本文发布于:2023-11-26 20:41:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1635119.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不起作用   Form   Dispose

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!