I had one UI object attached to a tab that will go missing only under a certain sequence of interaction with the program, and if it's missing, closing the program will result in AV and error of Invalid Window Handle. As I was trying to find out why, I found that calling its .Handle or .HandleNeeded at the start will fix the problem. But that doesn't answer why does it fix the problem.
So I would hope to know that is this common? Has anyone encountered this strange bug before? And know the reason?