Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Longer Task without waiting for completion
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00615250
Message ID:
00615442
Views:
15
This is nice approach and widely used. Another approach is running some application as a service using SRVAny or similar tool. But this is much more complex and less reliable - too much trouble for nothing really.

>Vlad,
>
>Yup! I am still playing around with it and I am not 100% sure
>how I'll finally do it. The last thing I was doing was making
>the exe so that it can be called either by a normal EXE-Call
>(DoubleClick, run/n, or windows Scheduler) or as a COM object
>as well.
>
>So I could let Windows Scheduler call it for the regular tasks
>(toatally independend from my App) after each it will release
>itself and if I need some ad hoc action, employ the object.
>
>
>>If you plan to do this as completely independed process, then keep in mind that COM object will be destroyed as soon as you exit the client application, or just release all references to that COM object. This means that you require to organize this by another way. For example, some table holds a parameters for running processes. Some service aapplication looks into that table once/5 minutes and run scheduled processes when found.
>>
>>Another example is running a separate EXE from the COM object that will do the job, while the COM object itself is free for use and releasing without interrupting the long process.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform