General information
Category:
Coding, syntax & commands
Hi Naomi
Using Shared did not make any difference
I have done a bit of experimenting with various code changes, and
what seems to be happening, is that from the DLL only,
it does not recognise the Network Folder Or machine where
the file is.
If I USE outside the DLL, its fine.
Its also fine, from within the DLL, if I select a File on the Local Machine
Regards,
Gerard
>If you add SHARED in the USE command, would you still get the same problem?
>
>>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only