Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Debuggin COM Objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00433537
Message ID:
00434865
Vues:
21
>>Another thing, changing path in a COM object is a big no-no especially for out of proc applications. Use SET PATH To get at your data and classes.
>>
>Hi Rick,
>
>Is CD a no-no in a COM object because it is poor practice, or because it causes problems?

If you do it in an InProcess server it will cause major problems because you're changing the path of the host application which might (most likely will) screw it up.

In out of process servers it's just poor practice but I still wouldn't do it just for consistency. General rule: A COM object should never change the environment of its calling processes and if it does, always reset it upon return of any method calls.
+++ 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