Examples of how to use this remarkable class from Calvin Hsia.
Gotchas:
1.) If you're getting a COM error message, your code is not properly setup to run as a thread. The best thing to do is to use the two existing examples (MyThreadFunc.prg and backprint.prg) as a template for your own thread code. *** Important: if you get stuck with a scrolling message saying "waiting for threads in Destroy....", just press the <ESC> key to exit.***
2.) Normal error messages will come from your thread code and have the line number of the error as well as a descriptive message.
3.) 'File access denied' errors in your thread code - make sure all tables are opened Shared explicitly.
Deployment Notes:
Just copy over the MtmyVFP3 folder or your new application folder that uses the thread class. The only other things you need to do are:
1.) regsvr32 T1.dll (the vfp thread server mtdll)
2.) regsvr32 printserver.exe (if you are doing background printing)