home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
WebBrowser Control System.AccessViolationException
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RMaruader" data-source="post: 479756" data-attributes="member: 26824"><p>I try to write external player based on webBrowser.</p><p>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.</p><p>[CODE]GUIGraphicsContext.form.SuspendLayout();</p><p> _webBrowser.Dock = System.Windows.Forms.DockStyle.Fill;</p><p> _webBrowser.Location = new System.Drawing.Point(0, 0);</p><p> _webBrowser.MinimumSize = new System.Drawing.Size(20, 20);</p><p> _webBrowser.Name = "webBrowser1";</p><p> _webBrowser.Size = new System.Drawing.Size(284, 262);</p><p> _webBrowser.TabIndex = 0;</p><p> </p><p> GUIGraphicsContext.form.Controls.Add(_webBrowser);</p><p> GUIGraphicsContext.form.ResumeLayout(false);</p><p> _webBrowser.Navigate("http://www.movenetworks.com/install-move-player");</p><p>[/CODE]</p><p>MediaPortal.log:</p><p>"2009-06-29 23:34:50.146339 [Info.][MPMain]: Exception <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" />ystem.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.</p><p> at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)</p><p> at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)</p><p> at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)</p><p> at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)</p><p> at System.Windows.Forms.Application.Run(Form mainForm)</p><p> at MediaPortalApp.Main(String[] args)</p><p>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.</p><p>2009-06-29 23:34:50.151339 [Info.][MPMain]: site :IntPtr DispatchMessageW(MSG ByRef)</p><p>2009-06-29 23:34:50.154339 [Info.][MPMain]: source <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" />ystem.Windows.Forms</p><p>2009-06-29 23:34:50.158339 [Info.][MPMain]: stacktrace: at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)</p><p> at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)</p><p> at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)</p><p> at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)</p><p> at System.Windows.Forms.Application.Run(Form mainForm)</p><p> at MediaPortalApp.Main(String[] args)</p><p>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)</p><p> at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)</p><p> at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)</p><p> at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)</p><p> at System.Windows.Forms.Application.Run(Form mainForm)</p><p> at MediaPortalApp.Main(String[] args)</p><p>"</p><p>Win7,IE8,VS2008,MP 1.0.2</p><p></p><p>Hava anybody any idea how i can fix this ?</p></blockquote><p></p>
[QUOTE="RMaruader, post: 479756, member: 26824"] 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 :System.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 :System.Windows.Forms 2009-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.2 Hava anybody any idea how i can fix this ? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
WebBrowser Control System.AccessViolationException
Contact us
RSS
Top
Bottom