Discussion Locked

File in use problem.

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have used Visual Basic 6.0 to write an ActiveX DLL. Once the DLL has been compiled and saved I then use my browser to load and ASP pages that uses the DLL. I am using Windows 98, with Personal Web Server. Everything works fine.

My problem is that I then change the code for the DLL and try to remake it and get a permission denied as the existing file is in use. I have tried closing all the applications (including start/stop PWS) that I can think may be using the file and it is still reported as being used. The only way I can overwrite the DLL is to reboot my machine. This is obviously not the right way to do this. Can anyone please help me.

Thanks in advance.

3 replies

by chris patrick

Your problem is that your app loads the dll into memory and it doesnt get unloaded when the app is closed.

There isnt much you can do about that.

You need to unload the dll from memory. Article Q96312 on msdn.microsoft.com refers to this.
There is also a program called either pview or pspy that may also be able to do this.

by steven.mcfadyen

I have downloaded a program called Dlldemon which does the trick. I also downloaded unloader (from Microsoft), but it was only the source code and I could not get it to compile correctly. If you have a compiled exe of unloader, I would appreciate if you could e-mail it to me.

Thanks for your help.

This discussion is closed to new replies.