Question

WebBrowser tool window corrupt memory

Posted 9 years ago by Avatar tobias weltner
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 9 years ago by Actipro Software Support - Cleveland, OH, USA
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
Information The latest build of this product (2014.1 build 0320) was released 6 months ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.