无法访问已处置的对象。对象名称:'statusdialog' [英] Cannot access a disposed object.object name:'statusdialog'

查看:102
本文介绍了无法访问已处置的对象。对象名称:'statusdialog'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法访问已处置的对象。对象名称:'StatusDialog'



我在使用我们的ERP应用程序的POS机中遇到此问题。还有3台其他POS机这是使用相同的应用程序,但没有给出任何错误。

请帮我解决这个问题。



其他客户没有遇到这个问题。



任何帮助都会给予高度赞赏。



我的尝试:



这只在一台机器上发生。

SO没有想法,请帮忙。

Cannot Access a disposed object.Object name:'StatusDialog'

I am facing this problem in POS Machine using our ERP Application.There are 3 other POS Machines which is using same Application but not giving any Error.
Please help me to solve this problem.

Other Clients are not facing this problem.

Any help regards this is highly Appreciated.

What I have tried:

This is Happening in only 1 Machine.
SO No Idea,Please help.

推荐答案

Quote:

无法访问已处置的对象。

Cannot access a disposed object.

根据定义,当您处置对象时,你告诉你不再需要那个对象。

然后你再次尝试使用它。

这是你的问题。



我的建议:只要你需要它就永远不会丢弃一个物体。

如果你没有我ntend处理对象,使用调试器查看对象何时被丢弃。

By definition, when you dispose an object, you tell that you don't need anymore that object.
Then you try to use it again.
That is your problem.

My advice: never dispose an object as long as you need it.
If you didn't intend to dispose the object, use the debugger to see when the object is disposed.


这篇关于无法访问已处置的对象。对象名称:'statusdialog'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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