WebBrowser tool window corrupt memory

Docking/MDI for Windows Forms Forum

Posted 19 years ago by tobias weltner
Avatar
When I place a webbrowser control onto an autohide tool window, I get a nasty exception once I close down my app:

System.AccessViolationException was unhandled
Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Source="System.Windows.Forms"
StackTrace:
at System.Windows.Forms.UnsafeNativeMethods.IConnectionPoint.Unadvise(Int32 cookie)

at System.Windows.Forms.AxHost.ConnectionPointCookie.Disconnect()

at System.Windows.Forms.AxHost.ConnectionPointCookie.Finalize()


This only happens when I put the control onto the tool window. If I put it elsewhere on the form or into a user control, everything is fine...

Comments (1)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
That stack is inside Microsoft's code so it's probably not something caused directly by UIStudio. I'd recommend trying to dispose the webbrowser control when your form is closing. That might help. Maybe also try to remove the webbrowser from its parent tool window. Let me know if that helps.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.