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 -----Ursprüngliche Nachricht----- Von: ProFox [mailto:[email protected]] Im Auftrag von John Weller Gesendet: Mittwoch, 6. Dezember 2017 22:38 An: [email protected] Betreff: RE: 2 VFP sessions running; 1 hangs and so does the other How do I add Threads? I'm running Win 10 Home - do I need Pro? John John Weller 01380 723235 07976 393631 > "SingleThreaded" has nothing to do with running multiple instances on the > same box. It just means that each instance does use only one main > processor-command-pipe. Which isn't even the case with VFP9, which > technically uses at least 8 threads already. (see taskmanager/details and add > column "Threads") [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] 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/[email protected] ** 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.

