|
-
May 13th, 2003, 04:41 AM
#1
Thread Starter
Addicted Member
Deleting a locked DLL
This might sound like a strange problem... but here goes:
I have a VB program which uses a DLL that I made. When the program finishes it is supposed to delete the DLL. Unfortunately the program locks access to the DLL when it first uses it.
Is the a way I can unlock it?
Using Visual Studio .NET 2005
-
May 13th, 2003, 04:55 AM
#2
Retired VBF Adm1nistrator
Close the file handle to the DLL.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
May 13th, 2003, 09:20 AM
#3
Thread Starter
Addicted Member
... could you give me an idea of how?
Using Visual Studio .NET 2005
-
May 13th, 2003, 12:04 PM
#4
Thread Starter
Addicted Member
... no then. anyone else?
Using Visual Studio .NET 2005
-
May 13th, 2003, 12:19 PM
#5
how does your program use the dll? is it a reference? it is probably going to be pretty hard to delete it in the program that references it.. you may want to try using late binding instead and destroy all objects before closing the app.. that should work
-
May 13th, 2003, 12:29 PM
#6
Thread Starter
Addicted Member
The DLL just has some functions in it. These are declared in a Class Module, using the normal "Private Declare Sub... " function declaration.
Can you give me an example of how I might use the technique that you described?
Using Visual Studio .NET 2005
-
May 13th, 2003, 01:50 PM
#7
Thread Starter
Addicted Member
Using Visual Studio .NET 2005
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|