日期:2014-05-20  浏览次数:20794 次

winform程序报错!帮帮忙看一下这是什么错误?
当软件直接运行时,在某个正常的操作中,会出现如下错误,而在调试模式下运行时,则不会出现。在相关程序中也未调用任何COM组件或者windows API。请问这是什么原因?

尝试读取或写入受保护的内存。这通常指示其他内存已损坏。
  在 System.Windows.Forms.UnsafeNativeMethods.WaitMessage()
  在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
  在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
  在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
  在 System.Windows.Forms.Application.Run(Form mainForm)

------解决方案--------------------
你可能是无意中试图修改系统自带的一些控件的属性,对系统自带的控件修改是不允许的 所以报错
------解决方案--------------------
楼主杯具了...

你换个机器看看呢???
------解决方案--------------------
不有 样的。。。
------解决方案--------------------
探讨
打了VS08 SP1补丁后,这问题就没有了,晕了!哈哈!

------解决方案--------------------
我来迟了