danomatika/ofxPd — Issue #17: Messages getting mixed up?
Author: cerupcat
Created: 2011-12-24 20:54:47+00:00
State: open

I'm currently getting the following:

```javascript
OF: OF_LOG_ERROR: ofxPd: Can not start list, message in progress
OF: OF_LOG_ERROR: ofxPd: Can not add symbol, message not in progress
OF: OF_LOG_ERROR: ofxPd: Can not add float, message not in progress
OF: OF_LOG_ERROR: ofxPd: Can not add float, message not in progress
OF: OF_LOG_ERROR: ofxPd: Can not add float, message not in progress
OF: OF_LOG_ERROR: ofxPd: Can not finish message, message not in progress
```

Even if I have this wrapped around the code, it still happens.

Code:
view plaincopy to clipboardprint?

if(!pdRef->isMsgInProgress()){}

My thought is this is occurring because I'm sending lists at the same time or something. One list is being sent on a certain frame number and that runs fine without the error. Another list sends x/y movement to PD on a touch move event. If I only run the frame based one OR the touch move one - it runs without error. When combined there becomes a problem. Could they be cancelling eachother out or something? The error also seems to cause some bad audio artifacts on occasion.