Thanks! Just like I thought - just have to use postcallback. (Interesting is that calling gui routines from threads (in win32) works fine (at least in my app) execept these popups).
Unpleasant thing about race conditions (and mutlithreding programming) is that they happen unpredictably... In some cases, once per month...