+ 1
Is "bad_aloc" a program issue or a resource issue in c++?
1 Antwort
+ 1
bad_alloc can also be thrown when you have a bug that is overwriting the pointers that the heap uses to manage the pool of memory that it uses to allocate from. The most common cause of that is that you are writing past the end of an allocated block of memory, (or before the start, but that's less common).