Hello,
The is for an app with 1 to 10 windows, the first one being a toolbar.
The problem happens with 2 or more windows and more often with a particular window with many canvasses.
The problem happens randomly (i.e. not 100% of the time) when I quit the app (and only when I quit the app).
I close the child windows before the toolbar.
The crash is flagged by an Apple OS crash window several sometimes seconds after quitting.
The crash happens in the IDE and with the compiled code.
I do not see a Xojo error message and I found no way to trap it.
The Apple crash report usually contains:
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Note: EXC_CORPSE_NOTIFY
where the Application Specific Information is either:
CFRelease()) called with NULL
or
_CFTypeCollectionRelease()) called with NULL; likely a collection has been corrupted
I have read other posts related to this kind of crash, this one for instance:
link text
I checked that I did not call .invalidate within the Paint events (as suggested in one of the previous posts).
I also close any CGContextMBS (a Monkeybread CGContext) at the end of each Paint event (there is no difference if I close or not the context).
I also did many other tests to prevent the refresh of canvasses.
Now here is where it happens:
I develop on Xojo 2018R2
I compile on Xojo 2018R2 and 2019R1.1.
The compiled 2019R1.1 64 bit version works fine on:
High Sierra 10.13.6
Mojave 10.4.4 and 10.4.6
The compiled 2019R1.1 32 bit version works fine on:
High Sierra 10.13.6
(BUT NOT ON Mojave 10.4.4 and 10.4.6)
The compiled 2018R2 32 bit version works fine on:
High Sierra 10.13.6
Mojave 10.4.4 and 10.4.6
I refrain from using Xojo 2019 R2 for the moment.
So my question is:
Did others see this kind of crash (EXC_BAD_INSTRUCTION (SIGILL)) happening on Mojave for 32 bit apps when compiled using Xojo 2019R1.1 and disappearing when compiled using Xojo 2018R2 ?
Thank-you!