Possible duplicate post...RE: Interesting Behavior...

Tim Miller (Timothy.E.Miller@vanderbilt.edu)
Wed, 31 Dec 1997 12:41:37 -0600


This is a multi-part message in MIME format.
--------------919E1E548BC1F051DB82E557
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

(Ever have a day when nothing is going right?)

Below you'll find attached the reply to Pasha
Murat's response to my original post. I am
sending this (again?) because I can't tell if
I CC: the roottalk list when I replied to him.

I apologize if this is a duplicate...
Tim
--------------919E1E548BC1F051DB82E557
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Return-Path: <Timothy.E.Miller@vanderbilt.edu>
Received: from Vanderbilt.Edu (tim@quantum.phy.Vanderbilt.Edu [129.59.205.29])
by mailer2.mail.vanderbilt.edu (8.8.7/8.8.7/VU2.2) with ESMTP id MAA14053;
Wed, 31 Dec 1997 12:29:45 -0600 (CST)
Sender: tim@mailer2.mail.vanderbilt.edu
Message-ID: <34AA9087.9E3AC41C@Vanderbilt.Edu>
Date: Wed, 31 Dec 1997 12:35:51 -0600
From: Tim Miller <Timothy.E.Miller@vanderbilt.edu>
Reply-To: Timothy.E.Miller@vanderbilt.edu
Organization: Vanderbilt University, Relativistic Heavy Ion Physics
X-Mailer: Mozilla 4.04 [en] (X11; I; Linux 2.0.32 i586)
MIME-Version: 1.0
To: Pasha Murat <murat@cdfsga.fnal.gov>
Subject: Re: Interesting Behavior from "equivalent" statements...
References: <199712311721.RAA02077@cdfsga.fnal.gov>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Pasha Murat wrote:
>
> Tim Miller writes:
> > Actually there are 2 strange behaviors. The first (brief)
> > one is this:
> >
> > TRQMD FileList = new TRQMD(filename,10);
> > (FileList+0)->function(); // Root Seg fault
> > TRQMD *temp = FileList + 0; temp->function(); // Root ok
> >
>
> Hi Tim,
>
> as your `FileList' var is a pointer you should type
>
> TRQMD* FileList = new TRQMD(filename,10);
> ^

Ooops, my post has a typo. My lines of code should look
like this:

TRQMD *FileList = new TRQMD("central-500evts-1.ascii", 10);
FileList->GetEvents() // returns 10, as it should
(FileList+0)->GetEvents() // root seg violation

Sorry about that...I did try to recheck everything but
apparently I'm blind. I did re-run the rest of the root
commands I listed in my first post and still come up with
the same errors so everything "should" be ok now.

(btw, I'm not getting any of my posts to the list so if
y'all would be kind enough the CC: my address I would be
very appreciative)

Thanks for the quick reply!
Tim

-- 
~~ WWW Page:  http://quantum.phy.vanderbilt.edu/~tim/ ~~
Tim Miller                   |  "Am I mature enough to get old?"
   Vanderbilt University     |                  --Me.
 Graduate Studies in Physics |
   Relativistic Heavy Ions   |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--------------919E1E548BC1F051DB82E557--