Results 1 to 4 of 4

Thread: unloading activeX dll

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    42

    unloading activeX dll

    hi.

    i have to standart Exe project with
    1 form. and command button on it.

    pressing the command button will do this :

    Private Sub Command1_Click()
    Dim obj As Object
    Set obj = CreateObject("Test111.CMyObject")
    Static i As Long
    i = i + 1
    Dim s As String
    s = obj.conStr("one", "two" & i)
    Command1.Caption = s

    Set obj = Nothing
    End Sub


    my q:

    when im try to recompile the activeX dll (test111)
    while the my app is working i get ..
    "permission denied..." , i guess that the dll was still load.

    what's wrong ?
    how can i unload the activeX dll after finish using it ?

    ( i followed the ActiveX shut down rules, but it still dont unload)

    thanks, and have a nice day.

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Are you recompiling the dll while the program is still running?
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    42

    Yes im compiling the dll while the program is running

    Yes im compiling the dll while the program is running ,
    b u t , im doing it after no object and reference from the dll r open.
    ( all object r closed and references set to nothing ).

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    dont think it matters...the app should still need to be closed as it probably still holds a reference although no memory is used.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width