I get the same results. So i tried moving the code to a custom method and calling it from there and it worked. Not sure if this helps
>I have created an Active-X DLL in VFP and I want to use CreateInstance in the object context. I can create the MTS Context object just fine, but calling GetObjectContext() returns .NULL.
>
>I created a MTS package with my DLL and indicated that it "Support Transactions". In the VFP object's Init event, I have the following code.
>
>Thanks for your help!