Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2005

Tip: Looking for answers? Try searching our database.

Application crashes using Save File Dialog from a Mdi Child

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff T Jones - 03 Aug 2005 14:01 GMT
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.
Maqsood Ahmed - 04 Aug 2005 07:46 GMT
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
Jeff T Jones - 04 Aug 2005 12:57 GMT
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

> Hello,
>   Can you provide us with the exception's stack trace. I have never
[quoted text clipped - 7 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.