When closing an APL+Win application, I sometimes get an error like this
⎕WI ACTION ERROR: Cannot invoke method "AutoFit" for closed object
'lv' ⎕wi 'AutoFit' 'header' 'all'
In this case, 'lv' is a Listview object. But sometimes it happens to other classes.
Question: How can I query beforehand an object is "closed"?
I thought the 'opened' property might be a clue, but it does no seem to be (it returns 1).
Any suggestions?