Cannot release ActiveX dll
Posted on 2003-03-06
I have a small problem. I created an activeX dll and for some reason I cannot release it with the =nothing command.
Microsoft VBScript runtime (0x800A005B)
Object variable not set
/encoder.asp, line 18
Here is my code:
set Encode = Server.CreateObject("MyTools.Encode")
Strng = "This string will be encoded soon!"
codedString = Encode.Code(cStr(strng), "Reg Key")
deCodedString = Encode.Code(cStr(codedString), "Reg Key")
response.write(Strng + "<br />")
response.write(server.htmlencode(codedString) + "<br />")
response.write(deCodedString + "<br />")
Encode = nothing
Everything works except the line at the end (Encode = nothing). That's when I get the error. When I try to update the DLL, I have to restart my computer because it's not released!
Thank you all in advance!