I start my thread like so
Code:
Plugin::Plugin(IPlugInstanceInfo instanceInfo)
: IPLUG_CTOR(NUM_PARAMS, kNumPrivateParams, kNumPrograms, instanceInfo)
{
TRACE;
g_plugin = this;
sysexThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)ThreadTrampoline, (LPVOID)this, 0, &threadId);
Code:
DWORD ThreadTrampoline(LPVOID lpParam)
{
Plugin* me = (Plugin*)lpParam;
if (!me)
return 0;
Sleep(500);
while (me->Running()) {
/// me->SendMidiMsgThings In here
It works with REAPER, SaviHost, in App Form, etc ---- just not ableton live?! Any ideas what the heck is going on here or how I can send MidiCC from a thread in ableton!?