G
Guest
Hello,
Iam getting this strange error with the CommonDialog box on ShowDialog.
Below is the stack trace. Any help is very much appreciated. Thank you.
****
Attempted to read or write protected memory. This is often an indication
that other memory is corrupt.
at
System.Windows.Forms.UnsafeNativeMethods.GetOpenFileName(OPENFILENAME_I ofn)
at System.Windows.Forms.OpenFileDialog.RunFileDialog(OPENFILENAME_I ofn)
at System.Windows.Forms.FileDialog.RunDialog(IntPtr hWndOwner)
at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)
at System.Windows.Forms.CommonDialog.ShowDialog()
at UMDCEEE.CoilDesigner.UI.CDUIElements.GetCDFileName(Boolean
forOpeningTrue) in
D:\Users\vikrant\Work\VSNET2\CoilDesigner.NET\CoilDesigner\CoilDesignerUIControls\Components\CDUIElements.cs:line 97
at UMDCEEE.CoilDesigner.UI.CDUICreator.HandleFileOpenClick(Object sender,
EventArgs e) in
D:\Users\vikrant\Work\VSNET2\CoilDesigner.NET\CoilDesigner\CoilDesignerUIControls\Components\CDUICreator.cs:line 1038
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e,
ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e,
ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.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)
********
Thanks.
Iam getting this strange error with the CommonDialog box on ShowDialog.
Below is the stack trace. Any help is very much appreciated. Thank you.
****
Attempted to read or write protected memory. This is often an indication
that other memory is corrupt.
at
System.Windows.Forms.UnsafeNativeMethods.GetOpenFileName(OPENFILENAME_I ofn)
at System.Windows.Forms.OpenFileDialog.RunFileDialog(OPENFILENAME_I ofn)
at System.Windows.Forms.FileDialog.RunDialog(IntPtr hWndOwner)
at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)
at System.Windows.Forms.CommonDialog.ShowDialog()
at UMDCEEE.CoilDesigner.UI.CDUIElements.GetCDFileName(Boolean
forOpeningTrue) in
D:\Users\vikrant\Work\VSNET2\CoilDesigner.NET\CoilDesigner\CoilDesignerUIControls\Components\CDUIElements.cs:line 97
at UMDCEEE.CoilDesigner.UI.CDUICreator.HandleFileOpenClick(Object sender,
EventArgs e) in
D:\Users\vikrant\Work\VSNET2\CoilDesigner.NET\CoilDesigner\CoilDesignerUIControls\Components\CDUICreator.cs:line 1038
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e,
ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e,
ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.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)
********
Thanks.