I can’t be sure what version my VST_GUI is, but it’s about 4 years old.
I have an issue on one user’s macOS system where an COffscreenContext is created but not used and when the variable pointing to the COffscreenContect goes out of scope, the COffsceenContext destructor isn’t called, instead the CDrawContext destructor is called twice, leading to a crash. How do I resolve this issue?
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 CoreFoundation 0x192f9b5f4 CFRelease.cold.1 + 16
1 CoreFoundation 0x192dbad44 CFRelease + 132
2 eDRUMin 0x100181d4c VSTGUI::CGDrawContext::~CGDrawContext() + 68
3 eDRUMin 0x100181ddc VSTGUI::CGDrawContext::~CGDrawContext() + 20
4 eDRUMin 0x1001917e0 VSTGUI::NSViewFrame::createOffscreenContext(double, double, double) + 180