I'm already using a similar code... but it does not end.

VB Code:
  1. Dim frm As Form
  2.    
  3.     Set Juego = Nothing
  4.     Set MessagesToServer = Nothing
  5.     Set Canto = Nothing
  6.     Set Dichos = Nothing
  7. '    Set Quejas = Nothing
  8.     Set fTablero = Nothing
  9.     Set StBy = Nothing
  10.  
  11.     Set ImgLst = Nothing
  12.     Set tFallo = Nothing
  13.  
  14.     Set OtroJuego = Nothing
  15.    
  16.     For Each frm In Forms
  17.         If frm.Name <> Me.Name Then
  18.             Unload frm
  19.             Set frm = Nothing
  20.         End If
  21.     Next
  22.  
  23.     If udpPeer.State Then udpPeer.Close
  24.    
  25.     End  'Just In Case
What's more astonish... is that it refuses to END (see the last line of code).