SetWindowLong indicates blocked thread.
-
SetWindowLong indicates blocked thread. Hi,guys: I got a problem and any response is much appreciated. :-) Environment: windows2000sp4,vc6sp5 92: LONG style = GetWindowLong(m_hwnd, GWL_STYLE); 93: style |= WS_DLGFRAME | WS_THICKFRAME; 94: SetWindowLong(m_hwnd, GWL_STYLE, style); 1000FD13 mov esi,esp 1000FD15 mov eax,dword ptr [ebp-8] 1000FD18 push eax 1000FD19 push 0F0h 1000FD1B mov ecx,dword ptr [ebp-4] 1000FD1E mov edx,dword ptr [ecx+194h] 1000FD24 push edx 1000FD25 call dword ptr [__imp__SetWindowLongA@12 (10090a28)] 1000FD2B cmp esi,esp 1000FD2D call __chkesp (1002cac0) Everything is ok till 1000FD25 call dword ptr [__imp__SetWindowLongA@12 (10090a28)] when single step debugging. The thread seems suspended at this line and never process any more. How can I solve this problem ? Thanks you very much !
-
SetWindowLong indicates blocked thread. Hi,guys: I got a problem and any response is much appreciated. :-) Environment: windows2000sp4,vc6sp5 92: LONG style = GetWindowLong(m_hwnd, GWL_STYLE); 93: style |= WS_DLGFRAME | WS_THICKFRAME; 94: SetWindowLong(m_hwnd, GWL_STYLE, style); 1000FD13 mov esi,esp 1000FD15 mov eax,dword ptr [ebp-8] 1000FD18 push eax 1000FD19 push 0F0h 1000FD1B mov ecx,dword ptr [ebp-4] 1000FD1E mov edx,dword ptr [ecx+194h] 1000FD24 push edx 1000FD25 call dword ptr [__imp__SetWindowLongA@12 (10090a28)] 1000FD2B cmp esi,esp 1000FD2D call __chkesp (1002cac0) Everything is ok till 1000FD25 call dword ptr [__imp__SetWindowLongA@12 (10090a28)] when single step debugging. The thread seems suspended at this line and never process any more. How can I solve this problem ? Thanks you very much !
I have used those lines of code before, i never had any problem with that, just make sure that the window handle is valide. The World is getting smaller and so are the people.