|
-
Jul 8th, 2002, 05:38 AM
#1
Thread Starter
Junior Member
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 ................
-
Jul 9th, 2002, 03:12 AM
#2
New Member
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
-
Jul 15th, 2002, 06:26 AM
#3
Thread Starter
Junior Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|