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 ................