Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

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

$
0
0

My application stops working with this dailog appearing on the screen in the middle of processing. It does not happens in Development or Testing environments. It appears only in production. I have recently migrated this windows app built using VB.net from Framework 1.1 to Framework 3.5. It used to work fine in version 1.1. But for some reason it fails when I am running the 3.5 framework version build. Below is the message I have got in the error message. Please let me know how to resolve or what could be the issue. Thanks a lot in advance.

See the end of this message for details on invoking 

just
-in-time (JIT) debugging instead of this dialog box.

 

**************ExceptionText**************

System.AccessViolationException:Attempted to read or write protected memory.Thisis often an indication that other memory is corrupt.

   at
System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc,IntPtr hWnd,Int32 msg,IntPtr wParam,IntPtr lParam)

   at
System.Windows.Forms.NativeWindow.DefWndProc(Message& m)

   at
System.Windows.Forms.Control.DefWndProc(Message& m)

   at
System.Windows.Forms.Control.WndProc(Message& m)

   at
System.Windows.Forms.TextBoxBase.WndProc(Message& m)

   at
System.Windows.Forms.RichTextBox.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)

 

 

**************LoadedAssemblies**************

mscorlib

   
AssemblyVersion:2.0.0.0

   
Win32Version:2.0.50727.3082(QFE.050727-3000)

   
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

OSOSUpload

   
AssemblyVersion:9.0.0.11

   
Win32Version:9.0.0.11

   
CodeBase: file:///C:/NYCSBS/OSOSUpload/v9.0.0.11aAuto/OSOSUpload.exe

----------------------------------------

System.Windows.Forms

   
AssemblyVersion:2.0.0.0

   
Win32Version:2.0.50727.3053(netfxsp.050727-3000)

   
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System

   
AssemblyVersion:2.0.0.0

   
Win32Version:2.0.50727.3053(netfxsp.050727-3000)

   
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Drawing

   
AssemblyVersion:2.0.0.0

   
Win32Version:2.0.50727.3053(netfxsp.050727-3000)

   
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

Microsoft.VisualBasic

   
AssemblyVersion:8.0.0.0

   
Win32Version:8.0.50727.3053(netfxsp.050727-3000)

   
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

----------------------------------------

DAOSOS

   
AssemblyVersion:9.0.0.11

   
Win32Version:9.0.0.11

   
CodeBase: file:///C:/NYCSBS/OSOSUpload/v9.0.0.11aAuto/DAOSOS.DLL

----------------------------------------

BZOSOS

   
AssemblyVersion:9.0.0.11

   
Win32Version:9.0.0.11

   
CodeBase: file:///C:/NYCSBS/OSOSUpload/v9.0.0.11aAuto/BZOSOS.DLL

----------------------------------------

System.Data

   
AssemblyVersion:2.0.0.0

   
Win32Version:2.0.50727.3053(netfxsp.050727-3000)

   
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

System.Configuration

   
AssemblyVersion:2.0.0.0

   
Win32Version:2.0.50727.3053(netfxsp.050727-3000)

   
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Xml

   
AssemblyVersion:2.0.0.0

   
Win32Version:2.0.50727.3082(QFE.050727-3000)

   
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

Microsoft.ApplicationBlocks.Data

   
AssemblyVersion:1.0.2582.21454

   
Win32Version:1.0.2582.21454

   
CodeBase: file:///C:/NYCSBS/OSOSUpload/v9.0.0.11aAuto/Microsoft.ApplicationBlocks.Data.DLL

----------------------------------------

System.Transactions

   
AssemblyVersion:2.0.0.0

   
Win32Version:2.0.50727.3053(netfxsp.050727-3000)

   
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll

----------------------------------------

System.EnterpriseServices

   
AssemblyVersion:2.0.0.0

   
Win32Version:2.0.50727.3053(netfxsp.050727-3000)

   
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll

----------------------------------------

DTOSOS

   
AssemblyVersion:9.0.0.11

   
Win32Version:9.0.0.11

   
CodeBase: file:///C:/NYCSBS/OSOSUpload/v9.0.0.11aAuto/DTOSOS.DLL

----------------------------------------

 

************** JIT Debugging**************

To enable just-in-time (JIT) debugging, the .config file forthis

application
or computer (machine.config) must have the

jitDebugging value
setin the system.windows.forms section.

The application must also be compiled with debugging

enabled
.

 

For example:

 

<configuration>

   
<system.windows.forms jitDebugging="true"/>

</configuration>

 

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT
debugger registered on the computer

rather than be handled
bythis dialog box.

Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>