Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dll . File In Use
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01387420
Message ID:
01388306
Views:
49
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
Map
View

Click here to load this message in the networking platform