CreateDevice hangs in multithreaded environment

Hi,

I'm working on a multithreaded renderer on DX9. I've ensured that the window used by the device is created on the same thread that is calling CreateDevice to avoid the deadlocks mentioned in the SDK documentation.
I have one very weird behaviour: the very first time (read the first one after a computer reboot) i launch my application on a multicore machine (running 2000/XP/Vista), the CreateDevice will hang if want a fullscreen presentation. If i want a windowed presentation, it's all fine. Everytime i'll restart the app it will work fine.

Any idea why i could get this weird behaviour?

Thanks in advance,

/David

[638 byte] By [DPotages] at [2007-12-29]