| ▲ | phkahler 10 hours ago |
| Exceptions should never be enabled by default. We live in a 64bit world so allocations failing indicates some other problem. |
|
| ▲ | zbentley 9 hours ago | parent | next [-] |
| What does processor but width have to do with the likelihood of allocation failures? |
| |
| ▲ | HarHarVeryFunny 8 hours ago | parent | next [-] | | I think what he means is that on a 64-bit system you have a massive virtual address space (typically only 48-bit, but that's still 256TB), and since malloc allocates from virtual address space, not limited by physical memory, it is unlikely you will get a malloc failure (unless you are trying to allocate more than 256TB per process, maybe due to a memory leak). | |
| ▲ | petcat 8 hours ago | parent | prev [-] | | 640K ought to be enough for anybody! |
|
|
| ▲ | usefulcat 3 hours ago | parent | prev [-] |
| Exceptions can be used to indicate many kinds of errors, not just allocation failures. |