Active X - Close Problems
I am writing an activex control that displays a form on top of all others and processes information sent to it by the controlling program.
The dll itself has 3 seperate classes that are each created as seperate objects using the vbscript from the application.
(Set Obj1 = CreateObject("mydll.Class1")
The problem is that when shutting the control down, I close the form from within the dll and then set each of the objects to Nothing in the vbscript.
This should kill the process.
I appears that it is not releasing the objects.
Is there a way of having a Close type command within the activex dll that will kill itself from memory.
Everything seems to work fine except that when I try to recompile durig testing etc. VB reports that the dll is in use. Also when restarted, it contain info from the previous instance.
Hence somewhere in windows or vbscript that is calling it is not releasing!
I would like to use something like:
call mycontrol.Close
in the vbscript to kill close it completely.
Regards Codeit.