Changeset 4895 for branches/erijo-dev

Show
Ignore:
Timestamp:
04/23/07 04:27:09 (20 months ago)
Author:
erijo
Message:

Catch unhandled exceptions from plugins

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/erijo-dev/licq/src/utils/thread.cpp

    r4866 r4895  
    3030static void* threadStartRoutine(void* arg) 
    3131{ 
    32   Licq::IThreadEntry* thread = reinterpret_cast<Licq::IThreadEntry*>(arg); 
    33   thread->run(); 
     32  try  
     33  { 
     34    Licq::IThreadEntry* thread = reinterpret_cast<Licq::IThreadEntry*>(arg); 
     35    thread->run(); 
     36  } 
     37  catch (...) 
     38  { 
     39    // TODO: Something... 
     40  } 
    3441  return NULL; 
    3542}