Generally speaking, you should not create windows in different threads. The general recommendation is to use the main thread (and only the main thread) responsible for all GUI work. Worker threads...