postCommandMessage


#1

Hi,

I just discovered that if I send two commands #1 and #2 using Component::postCommandMessage, they are delivered in the reverse order #2 then #1 to the handleCommandMessage... causing weird behavior in my app :-)

Is it normal?

/Phil

 


#2

Ha ha! My fault! The postCommandMessages are called from two different threads. The #1 sending log appears before the #2 but in reality #1 is sent after #2.
Adding a mutex fixed the issue.