C# WebBrowser 进Q空间抛出异常:System.AccessViolationException
操作系统:Windows 7 [6.1.7600] 旗舰版
相关程序版本:
Microsoft Visual Studio 2010
版本 10.0.30319.1 RTMRel
Microsoft .NET Framework
版本 4.0.30319 RTMRel
WebBrowser进入带背景音乐的QQ空间即抛出异常:System.AccessViolationException
我测试过,取消背景音乐后就没有异常抛出了
我尝试过屏蔽QQ空间网页中的:divToolbarBody 或者divTbMusicPanel都无法解决问题。
详细信息:
未处理 System.AccessViolationException
Message=尝试读取或写入受保护的内存。这通常指示其他内存已损坏。
Source=System.Windows.Forms
StackTrace:
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr 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)
在 WigIE.Program.Main(String[] args) 位置 C:\Users\WuMing\Documents\Visual Studio 2010\Projects\WigIE\WigIE\Program.cs:行号 40
在 System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()
InnerException:
Program.cs:行号 40的代码为:Application.Run(new Main(args[1]));