Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

v4.8.3 breaks with null reference exception on vt.FindRow()

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
medbiller



Joined: 20 Dec 2007
Posts: 39
Location: Arroyo, PR

PostPosted: Tue Dec 30, 2014 5:06 pm    Post subject: v4.8.3 breaks with null reference exception on vt.FindRow() Reply with quote

Hi:
Recently I updated from vTree v4.7.0 to v4.8.3 The following code breaks at Dim vtrw As Row = vt.FindRow(drw) with a null reference error. It had been running well for 5 years before the update. Reverting back to v4.7.0 fixed the problem.

Code:
           
For Each drw As DataRow In dtVt.Rows
     Dim vtrw As Row = vt.FindRow(drw)          '<-- error line
      If vtrw IsNot Nothing Then                     
           '
           ' Add some columns here
           '
      EndIf
Next


dtVt is the data table derived from the virtual tree vt's data source. With a break point at the error line it can be verified that dtVt and drw contain valid values.
Remember, this works with v4.7.0 Thanks.
_________________
Medical billing & records developer.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Infralution



Joined: 28 Feb 2005
Posts: 5000

PostPosted: Tue Dec 30, 2014 10:40 pm    Post subject: Reply with quote

That's strange because the changes between 4.7 and 4.8.3 were largely related to the user interface to support scaling - not the core tree algorithm
I am not able to replicate the problem. Can you replicate the issue with one of the sample projects or an application that you can send to support@infralution.com so that we can debug and track down the problem? We don't require the source code - just the assemblies.

If you debug your application and get the exception can you look at the exception details in the debugger and provide us with the stack trace?
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
medbiller



Joined: 20 Dec 2007
Posts: 39
Location: Arroyo, PR

PostPosted: Wed Dec 31, 2014 12:09 am    Post subject: vTree 4.8.3 exception stack trace Reply with quote

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 Infralution.Controls.VirtualTree.VirtualTree.FindRow(Object item)
at MBV2010InteropFormLibrary.frmPatient.UpdateTotals(Boolean test)
at MBV2010InteropFormLibrary.frmPatient.vtProcs_SelectionChanged(Object sender, EventArgs e)
at Infralution.Controls.VirtualTree.VirtualTree.OnSelectionChanged()
at Infralution.Controls.VirtualTree.VirtualTree.OnSelectedRowsChanged(Object sender, ListChangedEventArgs e)
at Infralution.Common.BindingCollectionBase.OnListChanged(ListChangedEventArgs e)
at Infralution.Common.BindingCollectionBase.OnRemoveComplete(Int32 index, Object value)
at System.Collections.CollectionBase.System.Collections.IList.Remove(Object value)
at Infralution.Controls.VirtualTree.RowSelectionList.Remove(Row value)
at Infralution.Controls.VirtualTree.VirtualTree.RowDisposed(Row row)
at Infralution.Controls.VirtualTree.Row.Dispose()
at Infralution.Controls.VirtualTree.Row.Dispose()
at Infralution.Controls.VirtualTree.VirtualTree.BindDataSource()
at Infralution.Controls.VirtualTree.VirtualTree.set_DataSource(Object value)
at MBV2010InteropFormLibrary.frmPatient.SetUpVtProcs1()
at MBV2010InteropFormLibrary.frmPatient.SaveVtProcs(VirtualTree& vtProcs, Boolean& savedSoundPlayed)
at MBV2010InteropFormLibrary.frmPatient.Save()
at MBV2010InteropFormLibrary.frmPatient.ToolStripButtonSave_Click(Object sender, EventArgs e)
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)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Microsoft.InteropFormTools
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.InteropFormTools/1.0.0.0__b03f5f7f11d50a3a/Microsoft.InteropFormTools.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 12.0.20806.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34239 built by: FX452RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
MBV2010InteropFormLibrary
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/MedicalBiller/MBV2010InteropFormLibrary.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34212 built by: FX452RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Telerik.WinControls.UI
Assembly Version: 2012.2.912.20
Win32 Version: 2012.2.912.20
CodeBase: file:///C:/MedicalBiller/Telerik.WinControls.UI.DLL
----------------------------------------
Telerik.WinControls
Assembly Version: 2012.2.912.20
Win32 Version: 2012.2.912.20
CodeBase: file:///C:/MedicalBiller/Telerik.WinControls.DLL
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Infralution.Controls.VirtualTree
Assembly Version: 4.8.3.0
Win32 Version: 4.8.3.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Infralution.Controls.VirtualTree/4.8.3.0__3e7e8e3744a5c13f/Infralution.Controls.VirtualTree.dll
----------------------------------------
SigPlusNET
Assembly Version: 1.1.4149.26893
Win32 Version:
CodeBase: file:///C:/MedicalBiller/SigPlusNET.DLL
----------------------------------------
Infralution.Controls
Assembly Version: 4.8.3.0
Win32 Version: 4.8.3.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Infralution.Controls/4.8.3.0__3e7e8e3744a5c13f/Infralution.Controls.dll
----------------------------------------
System.Web.Services
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
Infralution.Common
Assembly Version: 4.8.3.0
Win32 Version: 4.8.3.0
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Infralution.Common/4.8.3.0__3e7e8e3744a5c13f/Infralution.Common.dll
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Data.DataSetExtensions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.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.
_________________
Medical billing & records developer.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Infralution



Joined: 28 Feb 2005
Posts: 5000

PostPosted: Wed Dec 31, 2014 2:23 am    Post subject: Reply with quote

Thanks for that - I think I can see what the issue might be. I will put together a fix for you to download and try shortly.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group