On Fri, Aug 21, 2009 at 10:06 PM, Johan 't Hart<johanthart@xxxxxxxxx> wrote: > alloca() throws an exception when out of stack memory. But what would the > dynamically alloced array do when it runs out of memory? (Supposing that > those arrays are also created on the stack, which I don't know...) Is that > realy more complicated? You get a run-time error. Or rather, you get a run-time error if you're out of address space. If you go out of memory, swapping mechanisms are used. And in turn, if the swapping mechanisms fail, you'll get a run-time error AFAIK. -- Erik "kusma" Faye-Lund kusmabite@xxxxxxxxx (+47) 986 59 656 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html