Results 1 to 3 of 3

Thread: precautions in using multi-threading

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Location
    Mangalore ,India
    Posts
    22

    precautions in using multi-threading

    hi all,
    i am using multi-threading for one of my project ....
    i implement it in the usual way ...with a timer etc...
    i would like some suggestions regarding the precautions that should be taken so that the thread doesn't crash ...(because if any thread crashes all other threads will crash)
    precautions like ...
    1) always put On Error Resume next in class_terminate event. etc..
    2)don't use freefile to get a free file handle ...

    please suggest more..

    i handle all the errors that occur in the function that the timer calls ( since other errors occuring anywhere however will be propagating upwards to this function ..right..) .But still after the error is handled the error like deadly "Performed an illegal operation" occurs ..(one of places this occurs most frequently(not always) after all the objects of the classes of the respective activex-exe is released ...i.e when it is time for activex-exe itself to be released ...this is only what i guessed)...

    please suggest ................
    sudhir shetty .

  2. #2
    New Member
    Join Date
    Jul 2002
    Posts
    1
    I have been looking for this kind of answer for a while,
    but it this that it is a very bad idea do do multi-threading with VB, whatever you try to do to prevent your app from a crash...
    It seems that the best thing to do is to use exe ActiveX instead of ctreate different threads...
    Good luck !
    Chadoc

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Location
    Mangalore ,India
    Posts
    22
    hi,
    thanks for the suggestion .........
    i have been using activex exe itself for multi-threading with apartment model threading and with each class in it with multiuse instancing ....i am actually looking for suggestions in this regard itself ....please post if u have any .....
    bye .....thanks
    sudhir shetty .

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