Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 14267
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: Tue Aug 26 14:16:47 CEST 2025

Total time taken to generate the page: 0.09933 seconds