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:

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
... and the form never closes. Do you have any idea ?
Thank you,

Loïc Bauduin Brunelle,
ing jr.