Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple VFP instances, clashing tmp filenames
Message
 
To
09/01/2009 23:14:47
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01371808
Message ID:
01373416
Views:
21
Not that I know of. I don't know how you could possibly specify a different config.fpw for a COM object since the registration is for a very specific load behavior.

+++ Rick ---

>>Interesting.
>>
>>But I think that the registry settings aren't being used in COM objects - those settings are for the IDE version of VFP AFAIK.
>>
>>I just tried this and even in VFP it doesn't appear to actually affect the temp path. SYS(2023) still returns the original path even after the registry was changed and SYS(2056) was called.
>>
>>Even if it did work I think it'd be hard to do this reliably. The problem is that the servers load asynchronously off different threads so the order is not guaranteed nor the timing. You'd never know when to change the registry explicitly.
>
>I'll have to confess here that I'm quite rusty on the subject - didn't have to build a COM server for some five years now - but it's been said there are no stupid questions, save those that weren't asked. So... is it possible to serve the COM server .exe (or .dll, for that matter) a brand new config.fpw on each instantiation? In that config it could have a tmpfiles= set to some spanking new temp directory of its own - and then we'd be able to purge these more intelligently (i.e. whichever directory is older than n days, shoot to kill).
+++ 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