Ive been frustrated recently with apps built with Xojo 2019 r1 and r1.1 randomly crashing on Yosemite. The apps simply blink out of existence with no exceptions raised. Crashes occur in all parts of the app.
In checking MacOS crash logs, I noticed that this entry was always present:
com.xojo.XojoFramework 0x0000000108359f2d non-virtual thunk to CocoaPopupMenu::~CocoaPopupMenu() + 21
Ive since determined that crashes happen randomly when a window containing populated popupmenus is closed. While this issue affects Yosemite, it may affect other OS versions that I am unable to test. It does not appear to affect Mojave.
As a workaround, I created a method to clear the popups:
Function ClearAllPopups extends w as window
for i as integer = 0 to w.ControlCount-1
dim c as Control = w.Control(i)
if c isa PopupMenu then
Then on any window with popupmenus, I call ClearAllPopups at the end of the window’s close event.
Haven’t had a crash since.