mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
bad_alloc in thread
This commit is contained in:
parent
181738a147
commit
865d5b5408
1 changed files with 4 additions and 0 deletions
|
|
@ -94,6 +94,10 @@ sThreadRoutine(void *arg)
|
|||
}
|
||||
catch(sThreadExitExc__) {}
|
||||
catch(Upp::ExitExc) {}
|
||||
catch(std::bad_alloc) {
|
||||
extern char out_of_memory_message[200];
|
||||
Panic(out_of_memory_message);
|
||||
}
|
||||
if(!p->noshutdown)
|
||||
AtomicDec(sThreadCount);
|
||||
delete p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue