Im trying to build a simple midi sequencer I found on google code but when I´m running it I get this error:
// if component methods are being called from threads other than the message
// thread, you'll need to use a MessageManagerLock object to make sure it's thread-safe.
ASSERT_MESSAGE_MANAGER_IS_LOCKED
and when I add MessageManagerLock like this
void run()
{
while( ! threadShouldExit() )
{
MessageManagerLock mmLock;
//Rest of the code here
}
}
the gui freezes any ideas?
thanks for your help