U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » How to respond when memory is exceeded
Re: How to respond when memory is exceeded [message #61097 is a reply to message #61096] Mon, 18 November 2024 08:01 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Lance wrote on Mon, 18 November 2024 05:24
I see.

Now the question is: if a programmer opt to use memory allocation allocation utility provided by the language or standard libary, is an std::bad_alloc exception guaranteed to be thrown and able to be caught afterwards?


As far as my knowledge goes, no. But it is some time since I last checked, I suggest you to do some experimentation yourself.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NoMemoryLeaksCheck undefined symbol
Next Topic: Doubt with Buffer<> of a trivially destructible type
Goto Forum:
  


Current Time: Thu Oct 01 12:10:43 GMT+2 2026

Total time taken to generate the page: 0.01026 seconds