razzaj
May 16th, 2001, 02:12 PM
I am calling a COM from an Executable and it is working fine , the COM is supposed to add an entry to a Database.
For some reason , sometimes an error occures while trying to update the Database. the error is not my issue here , my issue is that My exe program will stall not do anything , and then suddenly terminate.
( I am running it on Win2k) I think i can oversome this by using threads but I have no idea how.
I am basically looping in a list and for each item i Am performing a sries of actions among which Calling this COM function.
What I would like is make this Function run in a different thread so that if an error occures my program doesnt stall , and continues processing the other entries regardless of failing entries.
For some reason , sometimes an error occures while trying to update the Database. the error is not my issue here , my issue is that My exe program will stall not do anything , and then suddenly terminate.
( I am running it on Win2k) I think i can oversome this by using threads but I have no idea how.
I am basically looping in a list and for each item i Am performing a sries of actions among which Calling this COM function.
What I would like is make this Function run in a different thread so that if an error occures my program doesnt stall , and continues processing the other entries regardless of failing entries.