1 - yes i can't assign an object\instance to nothing without test it 1st:
Dim WithEvents tmr As vbAPITimerTools.APITimer 'create a vbAPITimerTools.APITimer instance with an event
Set tmr = New vbAPITimerTools.APITimer 'initializate the instance
If Not tmr Is Nothing Then
tmr.StopTimer
Set tmr = Nothing
End If
' free\destroy Brush object:
' i used the 'DestroyPenBrush()', but it's the 'DeleteObject()':
If (FillWall1 <> 0) Then GameBitmap.DestroyPenBrush FillWall1
If (FillEmpty <> 0) Then GameBitmap.DestroyPenBrush FillEmpty
2 - i can't use 'Unload()' with QueryUnload(), with 'UnloadMode'... just use the 'Unload()' is the best.... seems they aren't good with infinite loops... maybe i did more errors, but, for now, i don't get leak memory problems ;)
3 - don't use the 'stop' button, from IDE, before clear resources!!!! the form have an event for i test if the object was destroyed(speaking about the 'stop' button from IDE)?
thanks for all to all