views:

39

answers:

3

Hi,

It happens only on Windows XP, the Windows API PostMessage will be blocked during maximum or minimum a window of another application. It takes more than 200ms. I've set priority of my application to High. There's no problem on Windows Vista or Windows 7. Any hints how to solve this problem?

Yun

A: 

If that's a problem then call PostMessage from additional thread.

adf88
Yes, I call PostMessage from a working thread instead of main UI thread. Is this a problem?
Yun
No, it could be a solution. So what is the problem? Why are these 200ms so important?
adf88
A: 

Wait a minute... IIRC, PostMessage has always been a non-blocking call. It "posts" and returns immediately. I believe I've tested this in the past. (I'm still waking up so could be wrong.)

If I'm right, there is something else giving the appearance of PostMessage blocking.

JustBoo
The evidence is if I comment out the PostMessage statement, then everything is back to normal.
Yun
A: 

Since it's a normal behavior of Window OS, I've managed not to call any graphics related API. Thank you

Yun