该对象目前在其他地方使用 [英] The object is currently in use elsewhere
问题描述
在处理C#
图形之前,是否有人遇到此异常?已经看到一些答案指向屏幕'
属性/设置/高级/故障排除下的
加速控制。
即图形驱动程序。
其他答案包括处置,重新验证。
任何建议都将受到赞赏。
当我的GUI运行正常并且我在屏幕上移动Windows
FORM时会发生这种情况。微软将其报告为一个bug,但仅限于
PCTABLET。
欢呼
Has anyone come across this exception before when dealing with C#
graphics? Have come across some answers that point to the
accelleration control under the screen''s
properties/settings/advanced/troubleshooting.
ie the graphics driver.
Other answers include disposing, revalidate.
Any suggestions would be appreciated.
It occurs when I have my GUI is operating fine and I move the Windows
FORM accross the screen. Microsoft report it as a bug, but only for
the PCTABLET.
cheers
推荐答案
talljames,
如果你没有看到你想要做的是什么,或者你正在打电话给他们做什么,那么很难提供任何东西。你能展示一下
问题的样本吗?
-
- Nicholas Paldino [.NET / C#MVP ]
- mv*@spam.guard.caspershouse.com
>
" talljames" < TA ******* @ Hotmail的双点com.no-spam.invalid>在消息中写道
news:41 ********** @ Usenet.com ...
talljames,
Without seeing what it is you are trying to do, or the calls you are
making, it''s difficult to offer anything. Can you show a sample of what the
problem is?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"talljames" <ta*******@hotmail-dot-com.no-spam.invalid> wrote in message
news:41**********@Usenet.com...
在处理C#之前是否有人遇到此异常
图形?已经看到一些答案指向屏幕'
属性/设置/高级/故障排除下的
加速控制。
即图形驱动程序。
其他答案包括处理,重新验证。
任何建议都将受到赞赏。
当我的GUI运行正常并且移动Windows时会发生这种情况。 />屏幕上的FORM。微软报告它是一个bug,但仅限于PCTABLET。
欢呼
Has anyone come across this exception before when dealing with C#
graphics? Have come across some answers that point to the
accelleration control under the screen''s
properties/settings/advanced/troubleshooting.
ie the graphics driver.
Other answers include disposing, revalidate.
Any suggestions would be appreciated.
It occurs when I have my GUI is operating fine and I move the Windows
FORM accross the screen. Microsoft report it as a bug, but only for
the PCTABLET.
cheers
有点难以发布码。但基本上我使用Threading.Timer在Windows窗口中有一个时钟(因为这个可以在
多线程环境中运行)。我关闭并运行时钟。然后我用b / b
用鼠标抓住表格并将其移动到屏幕上。发生以下异常时,这是
。
系统中发生了'System.InvalidOperationException'类型的未处理异常
。 windows.forms.dll
附加信息:该对象目前在其他地方使用。
无法追踪错误。我已经在Windows上尝试了它。
XP和Windows 2000.在2000盒子上我改变了加速度并且它修复了它的b $ b。但是,这不适用于XP。
任何想法?
Bit hard to post the code. But basically I have a clock in a windows
form using the Threading.Timer (as this one is able to operate in a
multithreaded environment). I set the clock off and running. Then I
grab the form with the mouse and move it accross the screen. That''s
when the following exception occurs.
An unhandled exception of type ''System.InvalidOperationException''
occurred in system.windows.forms.dll
Additional information: The object is currently in use elsewhere.
Can''t seem to track down the error. I have tried it on both Windows
XP and Windows 2000. On the 2000 box I changed the acceleration and
it fixed it. But, this doesn''t work with XP.
Any ideas?
" talljames" < TA ******* @ Hotmail的双点com.no-spam.invalid>在消息中写道
新闻:41 ******** @ Usenet.com ...
"talljames" <ta*******@hotmail-dot-com.no-spam.invalid> wrote in message
news:41********@Usenet.com...
有点难以发布代码。但基本上我有一个使用Threading.Timer的窗口形式的时钟(因为这个能够在多线程环境中运行)。我关闭并运行时钟。然后我用鼠标抓住表格并将其移动到屏幕上。当发生以下异常时,这就是
。
system.windows.forms.dll中出现未处理的类型''System.InvalidOperationException''
的异常>
附加信息:该对象目前在其他地方使用。
似乎无法追踪错误。我在Windows XP和Windows 2000上都尝试过。在2000机框上,我改变了加速度并对它进行了修复。但是,这不适用于XP。
任何想法?
Bit hard to post the code. But basically I have a clock in a windows
form using the Threading.Timer (as this one is able to operate in a
multithreaded environment). I set the clock off and running. Then I
grab the form with the mouse and move it accross the screen. That''s
when the following exception occurs.
An unhandled exception of type ''System.InvalidOperationException''
occurred in system.windows.forms.dll
Additional information: The object is currently in use elsewhere.
Can''t seem to track down the error. I have tried it on both Windows
XP and Windows 2000. On the 2000 box I changed the acceleration and
it fixed it. But, this doesn''t work with XP.
Any ideas?
如果在移动时停止时钟会发生什么?然后你必须在它发布时跳到正确的时间......
-
马布登
What happens if you stop the clock while you move it? Then you''d have to
jump ahead to the correct time when it is released...
--
Mabden
这篇关于该对象目前在其他地方使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!