I’ve got 2 really strange problems that I can’t seem to solve:
Since a while ago, when I compile my application in Debug, it won’t get the focus anymore. Strangely controls seem to respond, but keyboard doesn’t work. When I click some button that launches a PopupMenu, the PopupMenu disappears directly again after appearing, not letting me any time to choose an item.
When a modal window is opened, I can’t click the exit button of the modal window.
The application uses a native title bar, and that one is greyed, like the app doesn’t have the focus. In Release, everything works alright!
What could this be?
In my Treeview, when some item is clicked, this launches a Thread. Before launching it, it is stopped with stopThread(-1) because it could have been launched before if the user clicked another TreeViewItem.
In Debug mode, the stopThread() seems to happen very shortly after the mouseclick on the TreeViewItem, whereas in Release mode, it can take up to 2 seconds, which is a big delay. How is this possible? What can I do about it?