 |
|
|
Topic: Executable does not exit
|
By: Guest | Posted on: Feb 23 2015 at 08:26:01 PM | Hi,
Ever since I've included SCOMM32 in my Visual Basic 6 program running on Windows 7 he executable does not exit properly. The process remains running and I have to manually kill it from Windows task manager.
Any idea what's causing this? Do I have to do something special to properly exit SCOM32?
Thanks,
Marcin | |
By: Guest | Posted on: Feb 24 2015 at 09:13:22 PM | Even without SComm32 Vb6 was always quite happy to leave code running after the form has unloaded. For example if you have a timer being triggered then the code will continue to run after the form has unloaded.
Do you have any timers that are still active? Is the com port still open and possibly still raising oncomm events while you're trying to close the exe.
If any such events are triggered while the exe is unloading then the result is that the form unloads but the code behind is still running making the program visible in task manager.
In the form unload event you should disable any timers. Even when not using scomm32 you should get into the habit of doing that. But when using scomm also make sure the com port is closed.
| |
|