471,313 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,313 software developers and data experts.

Error in WPF application

We are using the windows forms webbrowser control in a WPF client
application.

Very rarely we get the following error message:

Message Attempted to read or write protected memory. This is often an
indication that other memory is corrupt.

Stack Trace:
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at
System.Windows.Threading.Dispatcher.PushFrameImpl( DispatcherFrame
frame) at System.Windows.Threading.Dispatcher.PushFrame(Disp atcherFrame
frame) at System.Windows.Threading.Dispatcher.Run() at
System.Windows.Application.RunInternal(Window window) at
System.Windows.Application.Run(Window window) at
System.Windows.Application.Run()

Did anyone encounter this kind of problem with a WPF application using
the WebBrowser control?

If so, how did you solve that problem?

(Using the WPF WebBrowser control is not an option since we need
specific functionality from the winform version)

Thanks,
Hans.

--

Aug 27 '08 #1
2 3282
Hans,

Is this on a clean test machine, or is it on a client machine, where the
user might have things such as browser helper objects installed? If it is
the latter, then I would think that those might be the cause, and you should
look there.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Hans van Kruijssen herbalife.com>" <hansvk<ADDwrote in message
news:uP**************@TK2MSFTNGP02.phx.gbl...
We are using the windows forms webbrowser control in a WPF client
application.

Very rarely we get the following error message:

Message Attempted to read or write protected memory. This is often an
indication that other memory is corrupt.

Stack Trace:
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at
System.Windows.Threading.Dispatcher.PushFrameImpl( DispatcherFrame
frame) at System.Windows.Threading.Dispatcher.PushFrame(Disp atcherFrame
frame) at System.Windows.Threading.Dispatcher.Run() at
System.Windows.Application.RunInternal(Window window) at
System.Windows.Application.Run(Window window) at
System.Windows.Application.Run()

Did anyone encounter this kind of problem with a WPF application using
the WebBrowser control?

If so, how did you solve that problem?

(Using the WPF WebBrowser control is not an option since we need
specific functionality from the winform version)

Thanks,
Hans.

--

Aug 28 '08 #2
Nicholas Paldino [.NET/C# MVP] wrote:
Hans,

Is this on a clean test machine, or is it on a client machine, where
the user might have things such as browser helper objects installed?
If it is the latter, then I would think that those might be the
cause, and you should look there.
Thanks for the answer. This is happening on a terminal server with no
browser helper objects. The only thing that I can think of is a number
of (internally developed) old activex controls that are used within the
web pages.

Do you think that an activeX control behaving badly inside a browser
control could cause the protected memory access error?

Thanks,
Hans.
--

Aug 28 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Brian Conway | last post: by
6 posts views Thread by Javier Cortés Cortés | last post: by
7 posts views Thread by p | last post: by
12 posts views Thread by Brett Robichaud | last post: by
reply views Thread by Adam Getchell | last post: by
8 posts views Thread by jcrouse | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.