Thanks Woody. John
John Weller 01380 723235 07976 393631 > > Hi John, > > Oh boy, what did I do? No, you can't add threads. That's VFP internal, some > are used for the timer event, some for grids/browse.... VFP itself is a > single-job language: You start one program and it runs til the end. That's it. If > you call a subroutine, the main program stops until the subroutine is finished. > Single job, single thread. > > We do have a "Multithread" runtime library: vfp9T.dll (T as in Thread), which > is especially useful for COM-Servers, which are called from several threads of > a webserver. It solves some issues with memory usage (since not every > Web-Session starts a new VFP), but also brings in new problems because > those user-sessions aren't completely independent. > > What you may want to play with: ParallelFox on VFPX: > https://github.com/VFPX/ParallelFox > > It is basically an extension to span new VFP tasks from within your main > program (called "worker threads") to do subroutines without halting the > main program. Coordinating those routines and getting notified about thier > finish is the complicated part, and that's what this library does quite nicely. > > wOOdy > _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/002301d36f4a$76c45e00$644d1a00$@johnweller.co.uk ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.