Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debuggin COM Objects
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00433537
Message ID:
00434865
Views:
20
>>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform