http://bugs.winehq.org/show_bug.cgi?id=16069
--- Comment #4 from Ken Resander kresander@yahoo.com 2008-11-18 02:32:35 --- (In reply to comment #3)
(In reply to comment #2)
not major. http://bugs.winehq.org/page.cgi?id=fields.html#bug_severity
does the problem still exist if you use Wine 1.1.8?
Yes, the problems still exist.
Minimal test program that demonstrates the problems:
// TESTDEBUG.CPP
#include <windows.h>
HWND hwndmain ; HINSTANCE hmodule ;
int aglobal ; int bglobal ;
static LRESULT CALLBACK MainWndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ) { switch( msg ) { case WM_CLOSE: DestroyWindow ( hWnd ) ; break ; case WM_DESTROY: PostQuitMessage( 0 ); break; default: return( DefWindowProc( hWnd, msg, wParam, lParam )); } return 0; }
int PASCAL WinMain( HINSTANCE fhInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow ) { WNDCLASS wc; MSG msg; int a = 1 ; int b = a + 1 ; aglobal = 10 ; bglobal = aglobal + 20 ; hmodule = fhInstance ; if( !hPrevInstance ) { wc.lpszClassName = "GenericAppClass"; wc.lpfnWndProc = MainWndProc; wc.style = CS_OWNDC | CS_VREDRAW | CS_HREDRAW; wc.hInstance = hmodule; wc.hIcon = LoadIcon( NULL, IDI_APPLICATION ); wc.hCursor = LoadCursor( NULL, IDC_ARROW ); COLORREF col = RGB(0,0,0); wc.hbrBackground = (HBRUSH)CreateSolidBrush ( col ) ; wc.lpszMenuName = "GenericAppMenu"; wc.cbClsExtra = 0; wc.cbWndExtra = 0; RegisterClass( &wc ); }
hwndmain = CreateWindow( "GenericAppClass", "Application Title" , WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE | WS_VISIBLE , 0,0 , 640 , 452, NULL, NULL, hmodule, NULL ); if ( hwndmain != NULL ) { SetWindowText ( hwndmain , "CreateWindow worked" ) ; } ; while( GetMessage( &msg, NULL, 0, 0 ) ) { TranslateMessage( &msg ); DispatchMessage( &msg ) ; } ; return msg.wParam; }
Please define as a normal Win32 Application project.
1. issue GO(F5) to let program run; shows it is working 2. place cursor on 'hmodule = fhInstance ;' line and a) go to cursor Ctrl+F10 b) inspect data for variables a, b via Shift+F9 shows error: expression cannot be evaluated. Formal parameter fhInstance inspection also not working. These are located on the stack. c) inspecting global variables aglobal and bglobal shows data inspection working for non-local data 3. single stepping by F10 to line ' hwndmain = CreateWindow( "GenericAppClass",... works 4. but program does not return after calling CreateWindow. Also, program does not go to a break point set after CreateWindow