>Does anyone know why the following code does not run multithreading? I have compiled the class below with MultiEXE and MultiUSE. I call it with the following commands, BUT it waits until the first ServerExec completes. I would like it to return and be able to start the second one.
>
It will run multithreaded in that the server will accept and either serialize or interleave execution of multiple requests, but to VFP, method calls are synchronous - the VFP app calling the server blocks until the requested operation completes and returns a result. Another application could request that the server perform some action on it's behalf, but again, the client would wait for completion before continuing the line of execution.
Asynchronous operations are best implemented with VFP using some sort of message passing mechanism such as MSMQ - the VFP app sends a message requesting the server perform some action, and it can then check for a message from the server indicating completion status or containing a result; if the client reaches a point where it can't proceed without confirmation, it waits on the server's reply.