VB Program won't close

  • Thread starter Thread starter MFarmer
  • Start date Start date
M

MFarmer

I have a stand alone VB Program that runs each night via
an automatic scheduler. It is a quick program that just
creates a .txt file from data input. My problem is when I
bring up the Task Manager on the machine, i see multiple
instances of the program still active and I have to
disable each of them. What can I do to stop this program
from showing up in the task mananger as I think it is
causing my program to not run as it should. Thanks
 
MFarmer said:
I have a stand alone VB Program that runs each night via
an automatic scheduler. It is a quick program that just
creates a .txt file from data input. My problem is when I
bring up the Task Manager on the machine, i see multiple
instances of the program still active and I have to
disable each of them. What can I do to stop this program
from showing up in the task mananger as I think it is
causing my program to not run as it should. Thanks

More likely your program is not running as it should and it is causing it to show up in the task
manager when it should not be running anymore....
 
The program might not be ending its task as expected. It might be crashing
at some point and there is no error handling to do garbage cleaning, so it
stays in memory.

What you need to do is fix the program so that in case of an unexpected
error it writes a message to the event log or something and closes properly.
That is of course, if you have access to the source code. If you bought this
program or someone made it for you, talk to them and have them do that.
 
* "MFarmer said:
I have a stand alone VB Program that runs each night via
an automatic scheduler. It is a quick program that just
creates a .txt file from data input. My problem is when I
bring up the Task Manager on the machine, i see multiple
instances of the program still active and I have to
disable each of them. What can I do to stop this program
from showing up in the task mananger as I think it is
causing my program to not run as it should.

Do you start your application more than once?
 
it is causing it to show up in the task

When I step through it, it appears to do everything just
fine.


perhaps the account that it is running under in scheduler is having some sort of permissions
problem?
 
Back
Top