Re: [BLAST_ANAWARE] seg faul in dst reading

From: Chi Zhang (zhangchi@MIT.EDU)
Date: Thu Sep 09 2004 - 15:11:40 EDT


I had similar problem. I do not understand the cause. My work arround is
recreate dst for every run:

for (int irun=0; irun<nrun; ++irun) {
  TBLDst dst; // instead of out side the loop, over head is not too big
                // compare to the event loop
  ... ...
}

I think Chris has done multimple dst files in compiled code and lrd is
another example of it. So it should in principle be possible.

Chi

On Thu, 9 Sep 2004, vitaliy ziskin wrote:

> When I try to read multiple dst files in the compiled code I get a seg
> fault on the second file if "MACRO" is used and on the third file if
> "MICRO" is used. I should note that multiple dst files are read out
> properly in a root macro version of the code. What is going on?
>
> Thanks, Vitaliy
> P.S. relevant code is :
> TBLDst dst;
> .................
>
> dst.Open(*gRecon, gOpt->DstFile(irun),"READ","MACRO");
> <------------------- This is where "MICRO" fails
>
> .....................................................
>
> dst.GetEntry(iev); <----------- This is where "MACRO" fails
>
> ..............................................................................................
>
> dst.Close();
>



This archive was generated by hypermail 2.1.2 : Mon Feb 24 2014 - 14:07:31 EST