I have a .Net 2005 program that runs fine on two of the three machines in the clients office. I get and "indexoutofrange" error when "FormClosing" is executed, the index number changes depending where I am in the grid.
I think that's what causes the error, it doesn't error on my development machine so I'm can't be sure. It happens when I click the form close button and that code is the only code in the form closing event. The "Me.NautiqueDataDataSet.Application" datatable is bound to a DGV. There are no other controls on the form, except a binding navigator.
There are other input screens that work fine so I know that the machine has read/write privileges. This machine was just added to the network and I ran the SetUp program, it's a laptop, windows 7 Pro 32 bit.
There are other .Net 2005 programs on this machine that use a DGV and they work fine
The other two machines are Windows XP 32 bit, but the programs runs fine on development machine Window 7 64 bit, and my laptop, Windows 8 64 bit.
Not sure how to debug this.
Code:
Private Sub SaveApplicationData()
Try
Me.Validate()
Me.ApplicationBindingSource.EndEdit()
Me.ApplicationTableAdapter.Update(Me.NautiqueDataDataSet.Application)
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
End Sub
Private Sub frmApplication_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
SaveApplicationData()
End Sub
There are other input screens that work fine so I know that the machine has read/write privileges. This machine was just added to the network and I ran the SetUp program, it's a laptop, windows 7 Pro 32 bit.
There are other .Net 2005 programs on this machine that use a DGV and they work fine
The other two machines are Windows XP 32 bit, but the programs runs fine on development machine Window 7 64 bit, and my laptop, Windows 8 64 bit.
Not sure how to debug this.