ActiveX dll not letting go [Resolved]
Hi,
I created an ActiveX DLL on my web server. In an ASP 3.0 app, I call:
VB Code:
Set objFactory = Server.CreateObject("prjVerbatron.clsFactory")
Then,
However, the project file is then locked, and I cannot replace the ActiveX DLL with a new version when I try to recompile the project. I get a "permission denied" error when I try to over-write my DLL.
If I go to my task manager, and kill the "dllhost.exe" with the webserver username, then I can over-write the file. That seems wrong to me, like I am not doing some needed garbage collection.
The class is very simple, and does not instantiate anything.
Is this normal?
Thanks!
Re: ActiveX dll not letting go [Resolved]
That's fine, although here's a simple example where an app calls a DLL which prompts a message box and nothing else. Can you explain why i'm having the same problem when all i'm doing is the following:
My DLL:
Public Function Test()
MsgBox "Test"
End Function
------------------------------------
My App calling the DLL:
Dim obj As Object
Set obj = CreateObject("Test.Class1")
Call obj.test
Set obj = Nothing
Re: ActiveX dll not letting go [Resolved]