Re: debugging a seg fault

From: Roger Mason <rmason_at_esd.mun.ca>
Date: Thu, 6 Nov 2008 16:52:21 -0330


Hello John,

John <idarraga_at_cern.ch> writes:

> Well, it means you have 48 pointers to Int_t, and each array of size
> 'nenergies*4'bytes somewhere in the heap. I would put everything on the
> heap, but that's your choice. So it should be fine now even for large
> numbers of 'nenergies'. Just make sure you clean up properly at the end.
>
> delete [] word

So, what is the syntax to put everything on the heap?

Cheers,
Roger Received on Thu Nov 06 2008 - 21:30:33 CET

This archive was generated by hypermail 2.2.0 : Mon Nov 10 2008 - 23:50:02 CET