The problem is that Win32 (not U++) does not handle this well, that is why it is checked.
While above example might seem obvious, I usually hit this error if Paint uses some sort of cached/lazy loaded data and loading of this data attempts to show the progress.