Re: What is the maximum acceptable size of an array?

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Tue, 10 Jul 2007 17:43:54 +0200


Hi John,

John Zoidberg wrote:
> And why does it not happen in programs compiled with gcc/g++?

Because there less stack is used - ROOT and CINT use some, too.

> What's the exact stack size of ROOT?

The one defined by the build / OS / combination. You really don't want to rely on it; it can be different in different contexts, with different libraries loaded, with different platforms etc.

> I used static allocation on purpose since it usually causes less
> problems than dynamic allocation.

It really does not at all; the contrary, I would say. That is, as long as you remember to clean up using delete or delete [].

Axel. Received on Tue Jul 10 2007 - 17:44:00 CEST

This archive was generated by hypermail 2.2.0 : Tue Jul 10 2007 - 23:50:02 CEST