libwebrtc icon indicating copy to clipboard operation
libwebrtc copied to clipboard

Get current process window failed when enumerate window in thread_.

Open chifandeyu opened this issue 2 years ago • 3 comments

chifandeyu avatar Oct 14 '22 17:10 chifandeyu

hey @chifandeyu, Thanks for your contribution, can you explain under what circumstances the thread error occurs?

cloudwebrtc avatar Oct 14 '22 23:10 cloudwebrtc

@cloudwebrtc After debugging webrtc. I found the function "GetWindowListHandle" call "IsWindowResponding(hwnd)" return false. set "uTimeoutMs = 3000" will still timeout and return false.I haven't found any detailed information for the specific reasons.

chifandeyu avatar Oct 15 '22 11:10 chifandeyu

hey @chifandeyu, Thanks for your contribution, can you explain under what circumstances the thread error occurs?

I found the problem when the worker thread tries to SendMessageTimeout to check Is window responding but now the main thread is waiting and the main thread is blocking.

image

image

chifandeyu avatar Oct 15 '22 19:10 chifandeyu