Hi there,
I have created a ActiveX DLL which displays a modal form. I have called it from an ASP script to display the modal form. Even after I set the object reference to that DLL to nothing, the DLL is not unloaded from memory i.e. when I try to delete or replace that DLL in Windows Explorer it gives me an error message as Permission Denied. The instancing property for the class in that DLL is GlobalMultiuse. What can be solution to this problem? Thanks in advance.

Code snippet for Activex DLL follows
'Dialog is the modal form
'Code in class file Class1
Private mdlg As Dialog

Private Sub Class_Initialize()
Set mdlg = New Dialog
End Sub

Private Sub Class_Terminate()
Unload mdlg
Set mdlg = Nothing
End Sub

Public Function ShowDialog()
mdlg.Show vbModal
End Function


Code snippet for ASP script
<HTML>
<BODY>
<%
Response.write("Begining of DLL access<BR>")
Dim MyObj
Set MyObj=Server.CreateObject("Trash.Class1")
MyObj.ShowDialog
Response.write("End of DLL access")
Set MyObj=Nothing
%>
</BODY>
</HTML>