[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: stack and heap size documentation/replies



Drat! I wish this listserv worked like all the others I use. I keep sending the replies to the individuals instead of to the list. I suppose some of you will tell me if I used a decent *nix email program I wouldn't have this problem. :)

Eric G. Miller wrote:

On Fri, Jun 28, 2002 at 05:57:36PM -0700, Paul Scott,,, wrote:

I have been searching for documentation on default stack and heap sizes with g++/gcc and how to change them if necessary. I haven't had any luck so far.

I have been getting segmenatation faults possibly related to my use of the new operator.

Your probably corrupting memory somewhere.  AFAIK, "new" should only
fail if you're totally out of memory (and then do so in a predictable
manner).  Segfaults are rarely due to programming errors in the
compiler and standard library.

I wasn't assuming so. I am new'ing some large buffers and I just want to know how far I can go.

Start by compiling with warnings turned up and debugging symbols turned
on...

I have been using gdb.  I will turn up the warnings.

Thanks,

Paul





--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: