Application crashes using Save File Dialog from a Mdi Child

G

Guest

I have an application with several Mdi child forms. In one child, I have an
option to export records in a DataGrid to a text file using the
SaveFileDialog to get the file and path.

When exporting, the opening and saving of the SaveFileDialog works fine.
Afterwards, as soon as I do anything with the Mdi Parent like resize the Mdi
Parent form, the application crashes and there is a null reference exception
thrown from forms.dll.

Has anyone experienced this and are there any suggested ways around this?

Appreciated in advance.
 
M

Maqsood Ahmed

Hello,
Can you provide us with the exception's stack trace. I have never
experience the problem you mentioned, but the stack trace will help to
understand the problem.

Bye!
Maqsood Ahmed [MCP C#,SQL Server]
Kolachi Advanced Technologies
http://www.kolachi.net
 
G

Guest

Absolutely,

The stack trace is as follows along with the loaded assemblies:

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an
object.
at System.Windows.Forms.UnsafeNativeMethods.DefFrameProc(IntPtr hWnd,
IntPtr hWndClient, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.Form.DefWndProc(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmSysCommand(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
StarAnalytics.SIS
Assembly Version: 2.0.2040.29917
Win32 Version: 2.0.2040.29917
CodeBase:
file:///D:/SIS/SIS%20Platform/StarAnalytics.SIS/bin/Release/StarAnalytics.SIS.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
StarAnalytics.Utils
Assembly Version: 2.0.2040.29908
Win32 Version: 2.0.2040.29908
CodeBase:
file:///D:/SIS/SIS%20Platform/StarAnalytics.SIS/bin/Release/StarAnalytics.Utils.DLL
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
StarAnalytics.SelectionManager
Assembly Version: 2.0.2040.29913
Win32 Version: 2.0.2040.29913
CodeBase:
file:///D:/SIS/SIS%20Platform/StarAnalytics.SIS/bin/Release/StarAnalytics.SelectionManager.DLL
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
Accessibility
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------
System.Data.OracleClient
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system.data.oracleclient/1.0.5000.0__b77a5c561934e089/system.data.oracleclient.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/winnt/assembly/gac/system.enterpriseservices/1.0.5000.0__b03f5f7f11d50a3a/system.enterpriseservices.dll
----------------------------------------
StarAnalytics.Client
Assembly Version: 1.0.2040.29912
Win32 Version: 1.0.2040.29912
CodeBase:
file:///d:/sis/sis%20platform/staranalytics.sis/bin/release/staranalytics.client.dll
----------------------------------------
StarAnalytics.ScheduleManager
Assembly Version: 2.0.2040.29915
Win32 Version: 2.0.2040.29915
CodeBase:
file:///d:/sis/sis%20platform/staranalytics.sis/bin/release/staranalytics.schedulemanager.dll
----------------------------------------
StarAnalytics.LogViewer
Assembly Version: 2.0.2040.18457
Win32 Version: 2.0.2040.18457
CodeBase:
file:///d:/sis/sis%20platform/staranalytics.sis/bin/release/staranalytics.logviewer.dll
----------------------------------------
StarAnalytics.EmailManager
Assembly Version: 2.0.2040.18457
Win32 Version: 2.0.2040.18457
CodeBase:
file:///d:/sis/sis%20platform/staranalytics.sis/bin/release/staranalytics.emailmanager.dll
----------------------------------------
StarAnalytics.Connections
Assembly Version: 2.0.2040.29911
Win32 Version: 2.0.2040.29911
CodeBase:
file:///D:/SIS/SIS%20Platform/StarAnalytics.SIS/bin/Release/StarAnalytics.Connections.DLL
----------------------------------------
MTGCCombobox
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:
file:///D:/SIS/SIS%20Platform/StarAnalytics.SIS/bin/Release/MTGCCombobox.DLL
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.3052.4
CodeBase:
file:///c:/winnt/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------

Thanks for the help

Maqsood Ahmed said:
Hello,
Can you provide us with the exception's stack trace. I have never
experience the problem you mentioned, but the stack trace will help to
understand the problem.

Bye!
Maqsood Ahmed [MCP C#,SQL Server]
Kolachi Advanced Technologies
http://www.kolachi.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top