欢迎来到 Purvisの部落格.|

兰purvis

园龄:7年10个月粉丝:12关注:42

解决程序运行异常: set_Interval(Int32 value):值"0"不是Interval的有效值

使用360优化了一下系统(windows XP sp3),然后在运行一个程序时,一旦使用右键菜单就报错,错误信息如下,

 

******************************** Started ********************************
ScriptEditor.exe Error: 2 : Exception:

System.ArgumentOutOfRangeException: Value '0' is not a valid value for Interval. Interval must be greater than 0.
Parameter name: Interval
at System.Windows.Forms.Timer.set_Interval(Int32 value)
at bc.g()
at bc.l()
at ActiproSoftware.UIStudio.Bar.BarCommandLink.OnMouseEnter(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIElement.ActiproSoftware.WinUICore.IInputElement.RaiseMouseLeaveEvent(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIElement.a(IUIElement A_0, MouseEventArgs A_1)
at ActiproSoftware.WinUICore.UIElement.OnMouseLeave(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIElement.ActiproSoftware.WinUICore.IInputElement.RaiseMouseLeaveEvent(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIElement.a(IUIElement A_0, MouseEventArgs A_1)
at ActiproSoftware.WinUICore.UIElement.OnMouseLeave(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIElement.ActiproSoftware.WinUICore.IInputElement.RaiseMouseLeaveEvent(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIElement.a(IUIElement A_0, MouseEventArgs A_1)
at ActiproSoftware.WinUICore.UIElement.OnMouseLeave(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIElement.ActiproSoftware.WinUICore.IInputElement.RaiseMouseLeaveEvent(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIControl.a(IUIElement A_0, MouseEventArgs A_1)
at ActiproSoftware.WinUICore.UIControl.OnMouseLeave(EventArgs e)
at ActiproSoftware.UIStudio.Bar.BarDockArea.OnMouseLeave(EventArgs e)
at System.Windows.Forms.Control.WmMouseLeave(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at ActiproSoftware.UIStudio.Bar.BarDockArea.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Quest.PowerGUI.ScriptEditor.Program.Main()

ProcessId=4588
ThreadId=1
DateTime=2010-01-27T14:32:43.3631892Z
******************************** Closed ********************************

 

分析了一下,主要问题在这一句

at System.Windows.Forms.Timer.set_Interval(Int32 value);

提示说0不是interval参数的有效值。

 

这个错误只在点击右键显示右键菜单时才出现,回忆了一下优化内容,似乎有一项是加快右键菜单显示。猜测是“右键显示延迟”设置的问题。

按如下流程找到注册表中指定项

 

1) 开始-->运行-->输入“regedit”

2) 找到“HKEY_CURRENT_USER/Control Panel/Desktop/MenuShowDelay”

 

果然我的这里被修改成了0,将其改为1,退出注册表编辑器,然后重启系统(必须,重启后才能生效)。

 

果然不出所料,就是这里的问题,现在一切运行正常。有时候,优化真是害死人啊~~哥的一个上午就这么废了。


————————————————
版权声明:本文为CSDN博主「hubo2690」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/hubo2690/article/details/6057670

本文作者:兰purvis

本文链接:https://www.cnblogs.com/purvis/p/15137478.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   兰purvis  阅读(284)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起
  1. 1 404 not found REOL
404 not found - REOL
00:00 / 00:00
An audio error has occurred.

作曲 : Reol

作词 : Reol

fade away...do over again...

fade away...do over again...

歌い始めの一文字目 いつも迷ってる

歌い始めの一文字目 いつも迷ってる

どうせとりとめのないことだけど

伝わらなきゃもっと意味がない

どうしたってこんなに複雑なのに

どうしたってこんなに複雑なのに

噛み砕いてやらなきゃ伝わらない

ほら結局歌詞なんかどうだっていい

僕の音楽なんかこの世になくたっていいんだよ

Everybody don't know why.

Everybody don't know why.

Everybody don't know much.

僕は気にしない 君は気付かない

何処にももういないいない

Everybody don't know why.

Everybody don't know why.

Everybody don't know much.

忘れていく 忘れられていく

We don't know,We don't know.

目の前 広がる現実世界がまた歪んだ

目の前 広がる現実世界がまた歪んだ

何度リセットしても

僕は僕以外の誰かには生まれ変われない

「そんなの知ってるよ」

気になるあの子の噂話も

シニカル標的は次の速報

麻痺しちゃってるこっからエスケープ

麻痺しちゃってるこっからエスケープ

遠く遠くまで行けるよ

安定なんてない 不安定な世界

安定なんてない 不安定な世界

安定なんてない きっと明日には忘れるよ

fade away...do over again...

fade away...do over again...

そうだ世界はどこかがいつも嘘くさい

そうだ世界はどこかがいつも嘘くさい

綺麗事だけじゃ大事な人たちすら守れない

くだらない 僕らみんなどこか狂ってるみたい

本当のことなんか全部神様も知らない

Everybody don't know why.

Everybody don't know why.

Everybody don't know much.

僕は気にしない 君は気付かない

何処にももういないいない

Everybody don't know why.

Everybody don't know why.

Everybody don't know much.

忘れていく 忘れられていく

We don't know,We don't know.