i got an Apple Crash reporter that shows me general data… i can’t find what cause the problem… (only at quitting…)
how can i catch this error in Xojo IDE ?
Ideally, you would be able to fix the problem. It looks like the code is trying to manipulate a listbox in the applications close event (which is probably way too late).
and if you are in fact referencing a control (listbox) on a window, then that window remains (or re-enters) scope again,
which will totally freak out the app, since it can never truly close
It’s something in the changed event that trigger something already gone while closing…
is there a way to stop the change event when quitting / closing the app/window ?
yes, it’s tricky ! i remove the code on the “change” event… and it’s stop crashing
if i simply put a breakpoint on the change event first line… it crash anyway, so i don’t know what the hell
and the report from an other computer for the same code is different… here :
Get whatever you need when the change and other events happen while the user is interacting, so that when CancelClose comes along, you already have whatever you need from the listbox.
If there’s anything else left that won’t trigger another change event, you can get it from the listbox in the CancelClose event, and then disable it or whatever. Don’t trigger events in CancelClose, and don’t do anything at all in the Close event.