Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Com Servers and Temp File Path
Message
De
02/12/1999 01:10:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
VFP Com Servers and Temp File Path
Divers
Thread ID:
00297772
Message ID:
00297772
Vues:
70
Hi
Has anyone else run into problems with VFP automation servers losing track of the windows temp file path? I have run into a situation several times with a com server that suddenly cannot locate a cursor. Tracing the code and checking with SYS(2023) revealed that the server had actually lost track of the windows temp file path, and therefore could no longer access the cursor. The problem only occurs when instantiating the servers from an ASP page or a script.The same server code will not have a problem when run from the VFP development environment.

I can reproduce the situation in a com server by creating an instance of a second VFP com server.

Test Method code to demonstrate the problem:

this.cTempFilePath = SYS(2023) && Returns 'C:\WINDOWS\TEMP\'
* Create an instance of another VFP server - in this case a dummy
* empty custom class defined as olePublic for test purposes.
oTest = CreateObject("TestCom.Dummy")
* Check the temp file path - which is now hosed ...
this.cTempFilePath = SYS(2023)
* At this point SYS(2023) returns an invalid partial path string.
Répondre
Fil
Voir

Click here to load this message in the networking platform