Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling VFP DLL from VB with MTS
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00173991
Message ID:
00174464
Vues:
27
>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 ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform