G
Guest
Thanks for you help guys, still getting same problem of CF
not releasing the memory when the form is closed. Here is
the code I use to display a form with a datagrid, which is
bound to a dataview.
Private Sub ShowOrderPad()
Dim ofrmOrderPad As New frmOrderPad
Cursor.Show()
Cursor.Current = Cursors.Default
'pass a ref of this form to next form( so I can hide the
current form )
ofrmOrderPad.FormRef = Me
ofrmOrderPad.ShowDialog()
ofrmOrderPad.Dispose()
GC.Collect()
End Sub
-----------------
The frmOrderPad dispose event looks like this
Private Sub frmOrderPad_Disposed(ByVal sender As Object,
ByVal e As System.EventArgs) Handles MyBase.Disposed
dvOrderPad.Dispose()
'this is me getting paranoid! doesn't do anything
dtOrderPad = Nothing
End Sub
the object dvOrderPad is bound to the datagrid.
Am I doing something very wrong here, After about 10
attempts of creating/closing this form I run out of memory
on the PDA( CASIO IT500 ).
Thanks
not releasing the memory when the form is closed. Here is
the code I use to display a form with a datagrid, which is
bound to a dataview.
Private Sub ShowOrderPad()
Dim ofrmOrderPad As New frmOrderPad
Cursor.Show()
Cursor.Current = Cursors.Default
'pass a ref of this form to next form( so I can hide the
current form )
ofrmOrderPad.FormRef = Me
ofrmOrderPad.ShowDialog()
ofrmOrderPad.Dispose()
GC.Collect()
End Sub
-----------------
The frmOrderPad dispose event looks like this
Private Sub frmOrderPad_Disposed(ByVal sender As Object,
ByVal e As System.EventArgs) Handles MyBase.Disposed
dvOrderPad.Dispose()
'this is me getting paranoid! doesn't do anything
dtOrderPad = Nothing
End Sub
the object dvOrderPad is bound to the datagrid.
Am I doing something very wrong here, After about 10
attempts of creating/closing this form I run out of memory
on the PDA( CASIO IT500 ).
Thanks