Results 1 to 6 of 6

Thread: Active X program not shutting down

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    98

    Active X program not shutting down

    Hello. I have a activex program that I use in another program. When I shut down the program that is using the activex program the activeX program doesn't shut down...

    Here is my declartion statement for the activex stuff
    Dim WithEvents m_Optimizer As JMCOptimizer.Connector


    when I shut down the program I set m_optimizer = nothing, but is there something else I have to do to shutdown the optimizer.exe (the active x)?
    i often feel i am parked diagonally in a parallel univers

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,500
    There is probably a Quit or Exit method (see the documentation for the JMCOptimizer), just run that before you set your object to nothing.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    98
    Well, there is no documentation for the JMCOptimizer because I wrote it. I guess what I need is how do I end my activex program from within my main program. I have a public event happening when the form in my activex exe is unloaded
    i often feel i am parked diagonally in a parallel univers

  4. #4
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    It sounds like the ActiveX Exe still contains a reference to an object, maybe the form. Since the object is still alive the ActiveX Exe won't shut down.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    98
    anymore suggestions on this problem?
    i often feel i am parked diagonally in a parallel univers

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,500
    When an ActiveX Exe doesnt close it can be for a few reasons, unfortunately we cant tell which it would be.

    The reasons that I can think of:
    * A program still has a reference to it.
    * It still has a reference to something else.
    * There is still code running in the ActiveX exe

    If none of these are true, then you'll just have to make sure that you are getting it to close itself when all connections have been closed.

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