Normal
I try to write external player based on webBrowser.In my player i create webbrowser control and start navigate. Web page is showed, but after init ActivX obejct wich embedded in this page, i become exception and mediaportal is closed.[CODE]GUIGraphicsContext.form.SuspendLayout(); _webBrowser.Dock = System.Windows.Forms.DockStyle.Fill; _webBrowser.Location = new System.Drawing.Point(0, 0); _webBrowser.MinimumSize = new System.Drawing.Size(20, 20); _webBrowser.Name = "webBrowser1"; _webBrowser.Size = new System.Drawing.Size(284, 262); _webBrowser.TabIndex = 0; GUIGraphicsContext.form.Controls.Add(_webBrowser); GUIGraphicsContext.form.ResumeLayout(false); _webBrowser.Navigate("http://www.movenetworks.com/install-move-player");[/CODE]MediaPortal.log:"2009-06-29 23:34:50.146339 [Info.][MPMain]: Exception ystem.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. 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 MediaPortalApp.Main(String[] args)2009-06-29 23:34:50.149339 [Info.][MPMain]: Exception :Attempted to read or write protected memory. This is often an indication that other memory is corrupt.2009-06-29 23:34:50.151339 [Info.][MPMain]: site :IntPtr DispatchMessageW(MSG ByRef)2009-06-29 23:34:50.154339 [Info.][MPMain]: source ystem.Windows.Forms2009-06-29 23:34:50.158339 [Info.][MPMain]: stacktrace: 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 MediaPortalApp.Main(String[] args)2009-06-29 23:34:50.160339 [Info.][MPMain]: MediaPortal stopped due to an exception Attempted to read or write protected memory. This is often an indication that other memory is corrupt. System.Windows.Forms 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 MediaPortalApp.Main(String[] args)"Win7,IE8,VS2008,MP 1.0.2Hava anybody any idea how i can fix this ?
I try to write external player based on webBrowser.
In my player i create webbrowser control and start navigate. Web page is showed, but after init ActivX obejct wich embedded in this page, i become exception and mediaportal is closed.
[CODE]GUIGraphicsContext.form.SuspendLayout();
_webBrowser.Dock = System.Windows.Forms.DockStyle.Fill;
_webBrowser.Location = new System.Drawing.Point(0, 0);
_webBrowser.MinimumSize = new System.Drawing.Size(20, 20);
_webBrowser.Name = "webBrowser1";
_webBrowser.Size = new System.Drawing.Size(284, 262);
_webBrowser.TabIndex = 0;
GUIGraphicsContext.form.Controls.Add(_webBrowser);
GUIGraphicsContext.form.ResumeLayout(false);
_webBrowser.Navigate("http://www.movenetworks.com/install-move-player");
[/CODE]
MediaPortal.log:
"2009-06-29 23:34:50.146339 [Info.][MPMain]: Exception ystem.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
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 MediaPortalApp.Main(String[] args)
2009-06-29 23:34:50.149339 [Info.][MPMain]: Exception :Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
2009-06-29 23:34:50.151339 [Info.][MPMain]: site :IntPtr DispatchMessageW(MSG ByRef)
2009-06-29 23:34:50.154339 [Info.][MPMain]: source ystem.Windows.Forms
2009-06-29 23:34:50.158339 [Info.][MPMain]: stacktrace: at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
2009-06-29 23:34:50.160339 [Info.][MPMain]: MediaPortal stopped due to an exception Attempted to read or write protected memory. This is often an indication that other memory is corrupt. System.Windows.Forms at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
"
Win7,IE8,VS2008,MP 1.0.2
Hava anybody any idea how i can fix this ?