Conversion Tool: Crash when saving selection

Submitted by Joerg Freudenstein on Tuesday, 13 July, 2010 - 10:04
Component
Tool
Category
Bug report
Priority
Critical
Assigned
Status
Fixed
Source
Datex stakeholder
Description

When clicking right on the selection tree, you can choose a filename to save the current selection. Immediatly after that, the program gives an unhandled exception (see attached image).
It's possible to continue without loosing data, but no saving is done.

I'm using Windows 7.

Thank you!
Jörg Freudenstein

Here comes the debug-message:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at D2_Conversion.DATEX2_MainDialog.toolStripMenuSave_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.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.ToolStripDropDown.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.ToolStripDropDown.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)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///F:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
mscorlib.resources
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///F:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
D2Conversion
Assembly Version: 2.0.2.0
Win32 Version: 2.0.2.0
CodeBase: file:///W:/SIM-TD/P_OCA/Spezial/DATEX%20II%20WorkingCopy/Schema%20generation%20tool/Source/DATEX%20II%20Conversion/bin/Release/D2Conversion.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///F:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///F:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///F:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///F:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Logging
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///W:/SIM-TD/P_OCA/Spezial/DATEX%20II%20WorkingCopy/Schema%20generation%20tool/Source/DATEX%20II%20Conversion/bin/Release/Logging.DLL
----------------------------------------
RuleSet
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///W:/SIM-TD/P_OCA/Spezial/DATEX%20II%20WorkingCopy/Schema%20generation%20tool/Source/DATEX%20II%20Conversion/bin/Release/RuleSet.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///F:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

{"changeLogs":[{"date":1528363415042,"componentOLD":"- Select a value -","component":"Tool","categoryOLD":"- Select a value -","category":"Bug report","priorityOLD":"- None -","priority":"Critical","assignedOLD":"","assigned":"jaderberg (22)","statusOLD":"- None -","status":"Fixed"}]}

Posted by jaderberg on April 16, 2028 Permalink

I cannot reproduse this problem, tried it both on Windows XP and Windows 7. Is it a certain model that crashes the tool? Or is it certain user steps taken?

However, the error handling around Save selection and Load can definitly be improved If you press exit in the save dialog you also crashes the tool.

Posted by jaderberg on April 16, 2028 Permalink

Added enhanced error handling both to Save and Load. That has seamed to solve the problem.

Included in build 3902 released 2010-09-07