RE: Calvin adds more meat to multithreading

Author: Christof Wollenhaupt

Posted: 2006-05-18 at 07:51:27

Hi Nick,

> At least Calvin is trying to assist the Fox community by finding ways to

workaround problems

But there are solutions out there for years... Remus Rusanu has got a

utility that I first mentioned 2001 in a session about COM:

http://www.geocities.com/rremus/multithreaded_vfp.htm

Last year for my session about multi-threading and VFP I wrote a C DLL that

launches multiple threads. You can download all the session samples include

source code (in German) from my web site (DMULT.ZIP):

http://www.foxpert.com/downloads.htm

However, multi-threading in VFP is not the same as multi-threading in other

languages. In VFP you need an MTDLL with the code for the second thread.

That means you have a second runtime environment along with it's own set of

PUBLIC variables, tables, and the like. You can't move a long-running SELECT

statement into the background without using typical COM technologies like

XMLTOCURSOR(), external tables, etc.

--

Christof

©2006 Christof Wollenhaupt