Ignore:
Timestamp:
04/29/11 11:52:18 (14 years ago)
Author:
tbretz
Message:
Fixed a severe bug in destructor deleting the fEventQueue elements, do not go to IsRunning() state in Run(dummy==true) mode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/StateMachineImp.cc

    r10450 r10490  
    141141    // queue is empty
    142142    if (fEventQueue.size())
    143         for (Event *q=fEventQueue.front(); q; fEventQueue.pop())
     143    {
     144        while (1)
     145        {
     146            Event *q=fEventQueue.front();
     147            if (!q)
     148                break;
     149
     150            fEventQueue.pop();
    144151            delete q;
     152        }
     153    }
    145154}
    146155
     
    10091018    }
    10101019
    1011     fRunning       = true;
     1020    fRunning       = !dummy;
    10121021    fExitRequested = 0;
    10131022
Note: See TracChangeset for help on using the changeset viewer.