Hi, Programmed a plugin on Mac and all works fine!, I was trying to get it on windows, but plugin at launch seems to be locked: pausing the execution I figure out that it seems to be a deadlock at line 1178 of juce_WASAPI_windows.cpp:
// This can ONLY occur in non-exclusive mode
if (! thread.threadShouldExit() && WaitForSingleObject (clientEvent, 1000) == WAIT_OBJECT_0)
continue;
Hierarchy of calls doesn’t help… Anyone has an idea of what’s happening here?
What host are you using? Is the host also using WASAPI? I haven’t tested, but I wouldn’t be surprised if Windows and/or JUCE doesn’t like multiple audio callbacks in the same process.
It’s very unusual for a plugin to open its own audio device. Do you definitely need to do this? If you can just use the host-provided audio callback, that will make things much easier.
Based on the details in your post, I can only speculate about the cause of the issue. If you can supply a minimal code snippet that demonstrates the problem, along with detailed instructions to repro the issue, it will be much easier for others to investigate.
Ok sorry I found the problem, It was because of an IterprocessConnection that was blocking my app, It has been hard to debug… Maybe this thread can be deleted because it’s not useful for other user, I’d like to create another thread to explain the problem! thank you!