.NET Framework Bookmark and Share   
 index > 64-Bit .NET Framework Development > Get Attempted to read or write protected memory. This is often an indication that other memory is corrupt. while runing my application on 64 bit window
 

Get Attempted to read or write protected memory. This is often an indication that other memory is corrupt. while runing my application on 64 bit window

Hi,
I ahve a windown application which uses webbrowser control for displaying video coming from a CGI interface. It uses a activex component to display the video stream. This works fine in XP. but when I try to run this on 64 bit window I got error
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt. ". Though on some 64 bit system it works fine .

How to resolv this issue?
Asif.M
Here is my stack trace

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Windows.Forms.UnsafeNativeMethods.IOleInPlaceObject.InPlaceDeactivate()
at System.Windows.Forms.WebBrowserBase.TransitionFromInPlaceActiveToRunning()
at System.Windows.Forms.WebBrowserBase.TransitionDownTo(AXState state)
at System.Windows.Forms.WebBrowserBase.WndProc(Message& m)
at System.Windows.Forms.WebBrowser.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Asif.M
The ActiveX component is crashing. Contact the vendor of this control for support.

Hans Passant.
nobugz
Hi nobugz,
Many thanks for your response.

Initially I also guessed so, but if I refer the same URL through IE it works fine....Only when I refer it by webbrowser control in my windows application it crashes.
Asif.M
On a 32 bit system also I am getting same error as I tested it on win 2008 32 bit.
Asif.M

You can use google to search for other answers

Custom Search

More Threads

• How to detect 32/64 bit OS?
• In DRM and WMP show error Retrieving the COM class factory for component with CLSID
• Prerequisites for Microsoft .NET 3.0 Framework installation in 64 bit systems
• 64-bit Apps Directory on the web
• Forcing .Net application to launch at 64-bit
• .NET Framework 2.0 won't install
• DirectX app with C# and both managed unmanaged C++ code: steps to take?
• 32-bit ODBC in XP 64
• 32 bit ODBC on 64 Bit OS
• Problem in Accessing database in vb.net