Hi,
I made a small dialer that retrive the data from an Excel file. While I am looking for the number to dial, the CPU usage is normal..., about nothing.
As soon as it starting the dialing process, the CPU usage is jumping to 99% and will stay there, until the dialing is done and the port is closed. No problem there.
But when I want to cancel the process by hitting my cancel button (Sub_Command_Click), the dialing will stop and the port will close all right but the CPU usage will not go down. It will stay to 99% until I close my application, wich it does nicely.
On my Sub_Command_Click here is the relevant code that I have:
MSComm1.Output = "ATH" + vbCr
MSComm1.PortOpen = False
But this is not killing the process that is working at that moment. Putting DoEvents or Refresh or a delay do not change anything.
For now, to get rid of the problem I unload the application just after having shell load a fresh copy.
What can cause that? I am using VB5, no service pack.
Thanks!
Alain
I made a small dialer that retrive the data from an Excel file. While I am looking for the number to dial, the CPU usage is normal..., about nothing.
As soon as it starting the dialing process, the CPU usage is jumping to 99% and will stay there, until the dialing is done and the port is closed. No problem there.
But when I want to cancel the process by hitting my cancel button (Sub_Command_Click), the dialing will stop and the port will close all right but the CPU usage will not go down. It will stay to 99% until I close my application, wich it does nicely.
On my Sub_Command_Click here is the relevant code that I have:
MSComm1.Output = "ATH" + vbCr
MSComm1.PortOpen = False
But this is not killing the process that is working at that moment. Putting DoEvents or Refresh or a delay do not change anything.
For now, to get rid of the problem I unload the application just after having shell load a fresh copy.
What can cause that? I am using VB5, no service pack.
Thanks!
Alain