473,385 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 3414
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: NG | last post by:
Hi, We are having DB2-V7.2 DB on AIX 5.2 machine. Recently we upgraded our system to fixpack 13 and activated activate AIX asynchronous IO function. Our DB is going to crash recovery with...
3
by: windandwaves | last post by:
Hi Gurus Does anyone know how I set the error trapping to option 2 in visual basic. I know that you can go to tools, options and then choose on unhandled errors only, but is there a VB command...
10
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through...
6
by: Javier Cortés Cortés | last post by:
i am getting this error when i am trying to access any file(with the ext. aspx) from my remote server. the error is : Server Error in '/' Application....
3
by: Damian | last post by:
Hi everyone I'm having an issue with one of our applications. I'm getting the following error when attempting to log in to the site: Server Error in 'xxxxxxxxxxxxxxxx' Application....
4
by: tommy | last post by:
hello everbody, i write a little asp-application with forms-authentication. i copy my aspx-files with web.config to my webspace and i get the error above... i tried to set the...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
12
by: Brett Robichaud | last post by:
Is anyone familiar with this error? I have this running just fine on my local machine but when I pushed it out to our development server I get this error. I have no idea what it is saying. Any...
0
by: Adam Getchell | last post by:
I'm attempting to write a custom Authentication module using http://www.15seconds.com/Issue/020417.htm I looked at http://support.microsoft.com/default.aspx?scid=kb;EN-US;307996, but it doesn't...
8
by: jcrouse | last post by:
I am using the following code to trap errors in a sub routine: Try Executable code Catch ex As Exception Dim strInputE As String = Application.StartupPath & "\Error.txt" Dim srE As...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.