I understand that this has come up quite a bit in the forums, and I've looked over a lot of questions and possible solutions and haven't found one that has worked for me yet. I was hoping someone else might have an idea. Here's the full error message: (I underlined what I thought was the most relevant)
"System.AccessV iolationExcepti on: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Windows. Forms.SafeNativ eMethods.SetWin dowPos(HandleRe f hWnd, HandleRef hWndInsertAfter , Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)
at System.Windows. Forms.Control.B ringToFront()
at StormDuty.frmMa in.frmMain_Load (Object sender, EventArgs e)
at System.Windows. Forms.Form.OnLo ad(EventArgs e)
at System.Windows. Forms.Form.OnCr eateControl()
at System.Windows. Forms.Control.C reateControl(Bo olean fIgnoreVisible)
at System.Windows. Forms.Control.C reateControl()
at System.Windows. Forms.Control.W mShowWindow(Mes sage& m)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.Scrollabl eControl.WndPro c(Message& m)
at System.Windows. Forms.Container Control.WndProc (Message& m)
at System.Windows. Forms.Form.WmSh owWindow(Messag e& m)
at System.Windows. Forms.Form.WndP roc(Message& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)"
The code that this appears to be referring to is this:
'this' is referring to a windows form called frmMain.
This happens on only one person's machine. It works fine on my machine and 4 others, which is why it's making it so hard to debug.
About my program, it's a C# .NET 2.0 project being developed in Visual Studio 2005. It uses One-Click deployment and connects to an Access database. In another forum, someone asked what Interops were being used. I'm using an interop with Outlook specifically and one with Office in general. I'm also using Crystal Reports.
I've tried reinstalling the .NET frameworks(1.1 and 2.0) on the person's computer several times with no effect.
Any help would be greatly appreciated and if you need any more information, feel free to ask.
Thank you,
Steve
"System.AccessV iolationExcepti on: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Windows. Forms.SafeNativ eMethods.SetWin dowPos(HandleRe f hWnd, HandleRef hWndInsertAfter , Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)
at System.Windows. Forms.Control.B ringToFront()
at StormDuty.frmMa in.frmMain_Load (Object sender, EventArgs e)
at System.Windows. Forms.Form.OnLo ad(EventArgs e)
at System.Windows. Forms.Form.OnCr eateControl()
at System.Windows. Forms.Control.C reateControl(Bo olean fIgnoreVisible)
at System.Windows. Forms.Control.C reateControl()
at System.Windows. Forms.Control.W mShowWindow(Mes sage& m)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.Scrollabl eControl.WndPro c(Message& m)
at System.Windows. Forms.Container Control.WndProc (Message& m)
at System.Windows. Forms.Form.WmSh owWindow(Messag e& m)
at System.Windows. Forms.Form.WndP roc(Message& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)"
The code that this appears to be referring to is this:
Code:
this.BringToFront();
This happens on only one person's machine. It works fine on my machine and 4 others, which is why it's making it so hard to debug.
About my program, it's a C# .NET 2.0 project being developed in Visual Studio 2005. It uses One-Click deployment and connects to an Access database. In another forum, someone asked what Interops were being used. I'm using an interop with Outlook specifically and one with Office in general. I'm also using Crystal Reports.
I've tried reinstalling the .NET frameworks(1.1 and 2.0) on the person's computer several times with no effect.
Any help would be greatly appreciated and if you need any more information, feel free to ask.
Thank you,
Steve
Comment