Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instance Closing issue in Multi-threaded DLL
Message
De
29/08/2006 09:18:38
 
 
À
28/08/2006 23:00:25
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01149242
Message ID:
01149318
Vues:
13
I am creating a multi-threaded DLL which I then wrap in a C#.net web service. This particular VFP DLL was once a thick client app that I transformed into a DLL. The DLL is a fairly large application and it is registered in COM+. My problem is that when I call the function in the web service, that in turn calls the VFP DLL, the first call works perfectly. The second call on the DLL results in an error or until I stop the DLL in the component services applet. I'm thinking maybe this is due to the fact that I am using PUBLIC variables - but I release them all near the end of the method call. I know the problem lies within the VFP DLL. I can try calling it from a simple VFP program and get the same issue where the instance is not being released or cleared. I'm not sure what to try next. Ideas?
Questions rather than ideas, sorry:
* Are you calling SetComplete on the COM+ context object at the end of your method call?
* What kind of error is raised? Access denied?
* If you add a simple dummy method to the package can you call that more than once?
* Do you have code in your init method which will cause problems if run more than once?

(Craig Berntson has recently published an excellent article on using VFP in COM+ at http://www.craigberntson.com/Articles/kb019.pdf [PDF])
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform