It's possible to use timing object in app without window object ?!
App start schedule process and don't window and i use timer event to start process.
It's possible to use timing object in app without window object ?!
App start schedule process and don't window and i use timer event to start process.
Hi Iiyan;
Yes & No ....
YES: The Timing object exists on its own and can interact with either visual or non-visual object classes
NO: A PB app cannot continue to run unless it has an open Window (unless its in a tight loop which in not efficient MS-Window resource wise - aka "poor design").
So the key would be to have an open non-visible window that the timing object can interact with (or any of its controls or NVUO's that it instantiated).
HTH
Regards ... Chris
Hi,
Your app will run if you open a window having Visible = FALSE.
You may opt to make the window visible while you debug.
There is limit on how many TIMING objects can run at the same time within a single Windows O/S process. As far as I recall it used to be 15 or 16 when I checked about 20 years ago.
If you want to run a PB app as a Windows service you should consider one of the Windows service options available in the market. I have used PBNIServ from TopWiz Programming. I know there are other tools as well.
HTH /Michael
You could have your application with the timer running in the systemtray.
For example check these out:
http://www.topwizprogramming.com/freecode_icontray.html
There are other ways, like running your application as a service:
http://www.topwizprogramming.com/pbniserv.html
Maybe you can also just run your application with an invisible window, but then you'd have to find a way to end it properly.
HIH
Hi Iliyan,
I'm not sure what you want to do.
The timing object should run without a window.
But your application will not run without a window. If there is no open window after your applications open event finished your application will be automatically closed.
HTH,
René
Absolutely .. I have been doing this with NSSM for over a decade! ;-)
Regards ... Chris