Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing a DLL from Memory
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00356822
Message ID:
00356843
Views:
15
>>Is there a tool to locate and remove a DLL from memory? I am trying to develop a VC++ DLL and I can't rebuild My project, presumably because the DLL is resident in memory.
>>
>>Thanks,
>Bill,
>
>CLEAR DLLS

George, you're not serious. :-) I thought you had more confidence in me than that. :-)

I tried that but it didn't work, even shut down VFP, so something else must be ( I assume ) holding a reference to it in memory somehow.

For a little background, I'm trying to develop this DLL in VC++, partly because I want to learn the technology and partly because we need the functionality. Well, if it's a 100 mile journey to get profficiency in VC++, I'm still packing for the trip ... so I've naturally probably done something wrong. As a first step I am calling the GetUserName() function in the DLL. After finally geting the silly thing to compile which was a miracle in itself, and trying to realize I had to restructure the interface to be more like a typical API call which returns integer to indicate success/failure and the parameters are passed in by reference to load the relevant data into. Well, I had been trying to test the thing in VB and VFP and was getting an error in VB when I try to make the exe ( "Interface is restricted ... or has a variable type not supported in VB" or some similar message ) and VFP was errorring out with "OLE Error ... bad Variable Type" I made some changes to the parameter types being used in the DLL and tried to rebuild. This is when the build fails due to inability to open the file for writing. I figure it's still in memory somewhere. CLEAR DLLS, no go, shut down VFP, no go. haven't shut down VB but it didn't even compile. So I figure I need a tool to find and unload the DLL, or it's reboot time. Yes, No?

Sorry for the verbosity ... don't detwit me. :-)
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform