System.AccessViolationException: Attempted to read or write protectedmemory. This is often an indica

N

Nitya Prakash

Hi,
We are using TinyMCE as HTML editor and it is embedded on a html
page. A WebBrowser control is used to display this page in a window
application. I am invoking SetContent method from window to set the
content in tinyMCE. It was perfectly working for a year, however it
start throwing below error since today. It is not happening for all
users only one user encountering this issue inconsistently.

System.AccessViolationException: Attempted to read or write protected
memory. This is often an indication that other memory is corrupt.
at System.Windows.Forms.UnsafeNativeMethods.IDispatch.Invoke(Int32
dispIdMember, Guid& riid, Int32 lcid, Int32 dwFlags, tagDISPPARAMS
pDispParams, Object[] pVarResult, tagEXCEPINFO pExcepInfo, IntPtr[]
pArgErr)
at System.Windows.Forms.HtmlDocument.InvokeScript(String
scriptName, Object[] args)
at
MorganStanley.ctrls.PEPlus.PEPUI.DataMgmt.TemplateUI.pepTimer1_Tick
(Object sender, EventArgs e) in C:\FAR\pe\PEPlus\Application
\BaseRelease\UI\DataMgmt\TemplateUI.cs:line 791
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
I am not sure why it started throwing exception suddenly. Can we get
rid of this issue by re-installing the .NET Framework 2.0.
Help is highly appriciated.
Thanks,
Nitya
 
R

Ray Phillips

I have only run accross this problem once, and it turned out to be a fault of
the computer, not the program. I would check the computers RAM with a memory
testing program such as MemTest86 (free), or if the computer runs vista, you
can hit F8 while booting and use the recovery tools. It has a built in
memory test application.

This seems the most likely to me since you have not had problems before and
you are only having problems on one computer.

You may want to scan for malware as well (virus/spyware).

-Ray
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top