This project has moved and is read-only. For the latest updates, please go here.
1

Closed

NullReferenceException @ TracerX-Viewer\Forms\MainForm.cs:line 756

description

Fairly large tx1 file I was viewing today. Had just did a string filter which worked - returned no lines as I expected. Then was clearing that filter to restore the set of lines but didn't see any display. So clicked the Reload icon and it proceeded to update status bar on bottom of window while reading this 20MB tx1 log file and then it popped up this exception:
 
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 TracerX.Viewer.MainForm.RestoreScrollPosition(Int32 rowNum) in D:\Users\JDFagan\Repositories\JDFagan\CS TracerX\TracerX-Patches\TracerX-Viewer\Forms\MainForm.cs:line 756
at TracerX.Viewer.MainForm.backgroundWorker1_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e) in D:\Users\JDFagan\Repositories\JDFagan\CS TracerX\TracerX-Patches\TracerX-Viewer\Forms\MainForm.cs:line 735
 
 
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5448 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll

TracerX-Viewer
Assembly Version: 6.0.1109.4140
Win32 Version: 6.0.1109.4140

CodeBase: file:///C:/Apps/TracerX/TracerX-Viewer.exe

System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/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.5447 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/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.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

fqz6h-xx
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5447 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

jfxp0le2
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5447 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5420 built by: Win7SP1

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll

gqnwcfi0
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5447 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.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:
 
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
 
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.

file attachments

Closed Jan 27, 2012 at 11:48 PM by MarkLTX
Fixed.

comments

jdfagan wrote Nov 24, 2011 at 3:22 AM

File is my tx1 binary TracerX log file compressed with 7Zip tool

MarkLTX wrote Jan 15, 2012 at 11:07 PM

Sorry it has taken me so long to respond. I had email notifications turned off.

I was unable to reproduce the problem using your log file (which I appreciate you attaching). I put a try-catch around the code that threw the exception. It's only trying to restore the scroll position after reloading the file, so I figure it's OK to just swallow any exceptions there.

I'll have the new version out soon.

wrote Jan 27, 2012 at 11:48 PM

wrote Feb 13, 2013 at 11:04 PM

wrote May 16, 2013 at 8:57 AM