Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CLEAR DLLS
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00277679
Message ID:
00277950
Views:
23
>What is the scope of this? I know that it's application wide, but if I have two separate vfp EXEs running, one launched by the other, will this wipe everything clean for both of them anywhere I put it?

George Tasker is right. Since you're using different EXEs, each of them will be a different process, so, CLEAR DLLS in one EXE cannot affect the other. This is no longer true if you're using different APPs.

Basically, with some rare exceptions, CLEAR DLLS should never be used in a program. (Because you don't know all the pieces of program that declare DLL functions and which assume that those functions are "there"). In order to protect yourself against other programs which may CLEAR DLLS, always DECLARE your DLL functions right before their use (or, at least, in the same function/proc/method). One exception is GetLastError() which must be declared before the use of other DLL functions for which you want to retrieve the last error code.

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform