Tthe project file not existing I should be able to fix, the painting… still trying.
The problem is the IDE plugin runs in the main thread triggered by the tools api, and nothing is pumping the message queue during that time - if I call application.processmessages then I get re-entrance issues. I’ve tried all sorts of hacks, just when I think I have it solved it happens again, randomly.
For one project I worked on, where I needed a progress bar to a hard to separate operation CC came up with using the raw Windows API, creating its own thread and window with a progress bar and a cancel button with its own event loop.