One of my products is a framework/DLL that links to an application and does audio and MIDI stuff. I find it very difficult to use the Juce message thread. Messages posted to the message thread do never arrive at their Juce target objects. Probably because the application already catches them and discards them if they are of no use.
Do I need to flag the messages with some special intParameter1 in order to bypass the application and arrive at Juce MessageListeners?
Should I hack the application to make it skip Juce events in some way? (have the sources, although not my code)
Is this at all possible? I always wondered how the same works for Juce audio plugins that obviously get their events from the message thread despite the host application is also reading the system’s event queue. My plugins post messages to the message thread and receive them without problems.
Specifically for this purpose, I wrote a FakeMessageThread class that installs itself as the message thread, which worked ok, but consumed extraneous CPU power for some reason.
Any hint is highly appreciated!