Here's the situation, my app uses the Domino com object to send an email. If the mail server is down, it uses a trappable error to notify the user that the server is down. Here's the problem, when the user clicks the exit button and the form disappears, the program is hogging huge amounts of cpu time in the Processes of Task Manager. Any ideas?
Here is my code to quit:
In the form:
Private Sub cmdExit_Click()
Unload Me
Call Public_Form_QueryUnload(0, 1)
End
End Sub
In a module:
Public Sub Public_Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Set DomSession = Nothing
Shell_NotifyIcon NIM_DELETE, t 'Deletes from SysTray
Exit Sub
End Sub
