Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dll . File In Use
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Dll . File In Use
Divers
Thread ID:
01387420
Message ID:
01387420
Vues:
97
Hi.
I am having problems running a DLL
I get an error (File In Use By Another User) when I run a method
in a DLL, but I can use the File Exclusively if I just Use MyFile Exclu
without any error message
I have a Set Exclu Off in the INIT but there is nobody else on anyway.
Once I
o=CreateObject("MyDll.MyClass") and do o.MyMethod()
it returns a File In Use
If I then exit out and go back in, I can
Use MyFile Exclu no problem
The minute I run the Method from the DLL, it gives
File In Use By Another again

Any help appreciated
Regards,
Gerard





_________________________________________________________
DEFINE CLASS MyClass as Session OLEPUBLIC

cStartPath = ""
PROCEDURE Init
*--- Issue Set commands appropriate for Com Servers --- *
SET RESOURCE off
SET EXCLUSIVE Off
SET REPROCESS TO 2 seconds
SET CPDIALOG OFF
SET DELETED ON
SET EXACT ON
SET SAFETY OFF

* ---- Save the server startup path ---- *
This.cStartPath = ADDBS(JUSTPATH(application.ServerName))
SET PATH TO (This.cStartPath)
ENDPROC

------------------------------------------------------------------------------------------------
PROCEDURE MyMethod
SELECT 0
USE MyFile ALIAS 'Par'
ENDPROC
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform