I'm having a strange problem within VB6, here's a simple example where an app calls a DLL which prompts a message box and nothing else. Why does the DLL remain in memory after completing the call to the DLL. I know it is still in memory because i cannot recompile the DLL while the calling app is still running. What's going on!

DLL:
VB Code:
  1. Public Function Test()
  2. MsgBox "Test"
  3. End Function


My App calling the DLL:
VB Code:
  1. Dim obj As Object
  2.  
  3. Set obj = CreateObject("Test.Class1")
  4. Call obj.test
  5. Set obj = Nothing