I've been reported that one of my plug-ins crashes as soon as the user tries to open a file selector.
This only happens on 32 bit plug-ins and the issue happens systematically, as I've just installed Reaper 32bit on my Mac and experienced the same issue.
The 64 bit version works perfectly (I compile my plug-ins as universal binaries), so I don't know if this is some kind of bridging problem.
I've only tried it in Reaper, but the user told me it's happening on other 32 bit hosts too.
The error is Bad Access and happens here (see the line comment):
Code: Select all
bool CocoaFileSelector::runInternal (CBaseObject* _delegate)
CBaseObjectGuard lifeGuard (this);
NSWindow* parentWindow = nil;
if (frame && frame->getPlatformFrame ())
NSViewFrame* nsViewFrame = static_cast<NSViewFrame*> (frame->getPlatformFrame ());
parentWindow = nsViewFrame ? [(nsViewFrame->getNSView ()) window] : nullptr; //*** BAD ACCESS ***
delegate = _delegate;
Is this a bug?
Can someone confirm the issue?