Hello,
I use the RaiseEvent method to indicate to some classes to clear their memory (setting members to nothing so the garbage collector can do its job).
I call it in the FormClosing event of a form, but, for some reasons the process won't continue after the RaiseEvent line:
... and the form never closes. Do you have any idea ?Code:Private Sub FormHorodateur_FormClosing(ByVal sender As Object, _ ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing m_grid = Nothing RaiseEvent OnNotification(New Notification(EnumNotificationType.DOCUMENT_CLOSING, Me.GetType.Name, Me.GetType.Name, Me.GetType())) Me.Dispose() End Sub
Thank you,
Loïc Bauduin Brunelle,
ing jr.




Reply With Quote