Hi everyone. I am working on a plugin and I am having a problem. I don’t get why but I get an exception throwing me to this function:
` void Thread::threadEntryPoint()
{
const CurrentThreadHolder::Ptr currentThreadHolder (getCurrentThreadHolder());
currentThreadHolder->value = this;
if (threadName.isNotEmpty())
setCurrentThreadName (threadName);
if (startSuspensionEvent.wait (10000))
{
jassert (getCurrentThreadId() == threadId);
if (affinityMask != 0)
setCurrentThreadAffinityMask (affinityMask);
try
{
run();
}
catch (...)
{
jassertfalse; // Your run() method mustn't throw any exceptions!
}
}`
The plug in crashes calling jassertfalse in the catch block. It doesn’t do it always. Sometimes the plug in works, sometimes i got that error and the plug in crashes. I really don’t understand…I tried to make some debugging but the thing is that it looks like not depending on the code: sometimes it throws the jassertfalse immediately before playing a midi note…when it doesn’t throw the Jassertfalse everything works perfectly. I’m using both juce host and Ableton LIve to run it, and it crashes in both cases.