>With MTS, the same VFP client program works fine the first time a run it. When I run it a second time, it locks up when VB trys to create an instance of the VFP DLL for its first time. The VFP client program creates a VB object, calls three VB methods, and then terminates. At the end of each VB method, I do a SetComplete().
Is your compnent marked as Multi-Use?
WHen you import the MTS package make sure you *don't* import an existing
component. You must import from disk with the typelibrary.
I don't think your problem stems from using MTS, but rather in your server.
There may also be security issues that are different when running inside
of MTS as compared to outside of it.
The first thing you should do is create an Error method on your server.
In it set a string (cErrorMsg or something like that) and check that
string after each call.
VFP servers can hang on a file open dialog. Your problem may stem from the
fact that the component is running in your SYSTEM directory and is not
finding a table because of that.
+++ Rick ---