Well, if you are so interested … this means a dangling pointer - something that was a window is not anymore (the memory was re-used and this new object has a different type and cannot respond to the selector ‘fOverrideRedirect’).
Now that I’ve answered your question I guess the answer does not help you. So, it’s my turn to ask:
the version of ROOT
the version of macOS
how exactly to reproduce this.
Otherwise - I do not have this crash on my mac, for example.
Thank you for your answer.
But yes, you are right I didn’t understand what you told
-ROOT version 6.04/10
-macOS version Sierra 10.12.1
-ROOT runs a script of 2200 lines converting 68 rootfiles to TTree and writing them on another rootfiles and also which produces histograms and draws and writes them on another rootfiles, and in which includes many pointers, canvases, arrays, histograms, and tfiles opened on dynamic memory and ,of course, these pointers were deleted on memory just after ending their processes