P
pmclinn
I have created an app that pulls down data from some Network Devices
via threaded proceedures. This proceedure runs inside of a exe.
The program collects the list of devices to scan from a txt list and
then issues out 6-7 queries at a time.
When the 25 queries return the data I write the info to oracle.
The problem is that the Sub Main ends before the threads complete. In
the Design-Debug mode I send up an invisible form (showdialog) and
leave it open until all my threads complete.
This trick does not work though when I run the exe from my desktop
though, in a production environment. The program opens the dialog but
no code fires.
I tried putting in a loop that checks to see if the threads are all
complete but it really seems to burn up cpu time.
What is the best way to handle this type of issue?
Basically I want the sub Main app to stay open until I say close....
via threaded proceedures. This proceedure runs inside of a exe.
The program collects the list of devices to scan from a txt list and
then issues out 6-7 queries at a time.
When the 25 queries return the data I write the info to oracle.
The problem is that the Sub Main ends before the threads complete. In
the Design-Debug mode I send up an invisible form (showdialog) and
leave it open until all my threads complete.
This trick does not work though when I run the exe from my desktop
though, in a production environment. The program opens the dialog but
no code fires.
I tried putting in a loop that checks to see if the threads are all
complete but it really seems to burn up cpu time.
What is the best way to handle this type of issue?
Basically I want the sub Main app to stay open until I say close....