Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Mult thread.. sample and discussion please Date: Wed, 2 Feb 2022 07:24:20 +0100 Lines: 33 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net Tool+2r596N5/RX7bHQi2wJ2ofwkbFReHRgIJp3eWA8RlbNVo= Cancel-Lock: sha1:CUy3008R6TKfJJ/3N4axpdnK77s= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:13531 Hi Phil, as Jamal wrote: never use threads in VO. You can use them in X#, but if you have longer operations it may be better to move them to background Windows services on some dedicated machine and run them when the VO application sets a flag in the database or writes some flag file. Wolfgang Phil McGuinness wrote: > Have a VO GUI app runs lots of things via Dispatch.. but one of > those things needs a good hour to run. I do not want wait in current > processes for this.. and happy to have background event running. > Realise on single thread cannot get this to work.. it wants that > length job to finish before moving on. > > So CreateVOThread and have a function with the work to be done. > Thought start this and do other things and that thread will finish.. > until needed again. > > Can I do this with simple to CreateVOthread with the function and the > main thread is processing again. I did not see this.. and confused. > > Any help welcome --