Results 1 to 2 of 2

Thread: urgent: problem with thread

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    32
    hello everybody! please, help me with such situation:

    I use TapiLine ActiveX (it initializes telephone line) and open new thread in my app. so when I terminate thread my program hangs: I can close the form but I can't quit app. if I don't initialize ActiveX, thread terminates and app quits normally. whats the matter???
    thanx!
    Arnas

  2. #2
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    Auckland, NZ
    Posts
    411

    You have a variable keeping a reference to the ActiveX

    Just a guess. You probably have a global or module leve variable holding the reference to your ActiveX control or to something related to it.

    If you do, simply set that varialbe to Nothing when Unloading the form (i.e. in the form's Unload event).

    It would be something like:
    Code:
    Set myVar = Nothing
    If not, someone else may think of the answer. I ahve never used that ActiveX control.

    Regards
    Paul Lewis

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