bad_alloc in thread

This commit is contained in:
Mirek Fidler 2024-11-19 13:45:33 +01:00
parent 181738a147
commit 865d5b5408

View file

@ -94,6 +94,10 @@ sThreadRoutine(void *arg)
} }
catch(sThreadExitExc__) {} catch(sThreadExitExc__) {}
catch(Upp::ExitExc) {} catch(Upp::ExitExc) {}
catch(std::bad_alloc) {
extern char out_of_memory_message[200];
Panic(out_of_memory_message);
}
if(!p->noshutdown) if(!p->noshutdown)
AtomicDec(sThreadCount); AtomicDec(sThreadCount);
delete p; delete p;