"System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Windows.Forms.SafeNativeMethods.SetWindowPo s(HandleRef hWnd, HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)
at System.Windows.Forms.Control.BringToFront()
at StormDuty.frmMain.frmMain_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)"
The code that this appears to be referring to is this:
Expand|Select|Wrap|Line Numbers
- 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