MantisBT - JANA
View Issue Details
0000387JANABugpublic2013-10-09 07:462013-11-18 11:27
davidl 
davidl 
normalminorhave not tried
resolvedfixed 
0000387: Event status word reset at wrong time
Here are two e-mail's from Paul:

-----------------------------
Hey David, in BANA I tried setting the status bit in the JEventSource to 1, but by the time I read it in my plugin evnt it has a value of 0. It looks like JEventLoop::OneEvent() calls ClearFactories(), which then clears the status bit. Perhaps the event status bit shouldn't be cleared here? I think it would be better to assume that the JEvent handed to the JEventLoop is already setup properly by the event source. Thanks for taking a look at this.

 - Paul

-----------------------------
Actually, it looks like in JApplication::NextEvent(), you need to manually copy the event status from "myevent" to "event" also. With those two changes, it works for me.

 - Paul
No tags attached.
Issue History
2013-10-09 07:46davidlNew Issue
2013-11-18 11:27davidlNote Added: 0000578
2013-11-18 11:27davidlStatusnew => resolved
2013-11-18 11:27davidlResolutionopen => fixed
2013-11-18 11:27davidlAssigned To => davidl

Notes
(0000578)
davidl   
2013-11-18 11:27   
This was committed as svn revision 1395 and will appear in jana 0.6.7. Note that it wasn't clear what Paul meant by "two changes" since ClearFactories call is made before getting the event from the event source and copying the values into the JEventLoop's JEvent.