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

From: Tim Miller (Timothy.E.Miller@vanderbilt.edu)
Date: Wed Dec 31 1997 - 19:41:37 MET


(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

attached mail follows:


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 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:23 MET