Yep, this fixed the problem. Successfully ran the FSM for 20,000+ times without an error.
Thanks for the fix!
-Chris --- On Sat, 3/31/12, Achilleas Anastasopoulos <address@hidden> wrote: From: Achilleas Anastasopoulos <address@hidden> Subject: Re: [Discuss-gnuradio] gr-Trellis FSM To: "address@hidden" <address@hidden> Cc: address@hidden Date: Saturday, March 31, 2012, 12:20 PM
great catch!
It appears that in the constructor we (ie, I) forgot to close the file...
I will submit a patch ASAP, but in the meantime, please add
fclose(fsmfile);
just before
generate_PS_PI(); generate_TM();
in the fsm constructor fsm::fsm(const char *name) in gr-trellis/src/lib/fsm.cc
remake reinstall and test.
Please let us know if this fixes your problem.
Achilleas
|