Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement