This probably happens due to the fact that 32 bit VST2 is hosted using Carbon instead of Cocoa, so statically casting frame->getPlatformFrame () to a NSViewFrame* pointer yields an invalid pointer. Maybe try using a dynamic cast here and assume it’s a HIViewFrame if you obtain a nullptr. You can also simply use IPlatformFrame::getPlatformRepresentation() instead to retrieve an abstract representation of the container window.