IMM_Register and Flight Simulator 98

Christian Costa titan.costa at wanadoo.fr
Wed Dec 8 09:05:09 CST 2004


I have exactly the same problem here (with several apps).
Removing the LoadCursorW call (ie setting wndClass.hCursor to NULL)
in IMM_Register seems to prevent the crash.

Robert Reif wrote:

> Just tried to install Flight Simulator 98 with latest CVS and got this:
>
>------------------------------------------------------------------------
>
>[wine at dell cdrom1]$ wine setup.exe
>wine: Unhandled exception (thread 0009), starting debugger...
>WineDbg starting on pid 0x8
>Unhandled exception: page fault on read access to 0x000004d0 in 32-bit code (0x40e42e67).
>In 32 bit mode.
>Register dump:
> CS:0023 SS:002b DS:002b ES:002b FS:0033 GS:004f
> EIP:40e42e67 ESP:4081f394 EBP:4081f3bc EFLAGS:00010212(   - 00      - RIA1)
> EAX:00000000 EBX:40f0b1e4 ECX:40502a9f EDX:00000000
> ESI:40e15a98 EDI:40322f50
>Stack dump:
>0x4081f394:  4081f3bc 409816e0 000000be 00000000
>0x4081f3a4:  00000000 00000000 40e42e5b 40e11220
>0x4081f3b4:  40e15a98 40322f50 4081f3e0 40dd85e3
>0x4081f3c4:  00000000 000000b6 00000000 00000000
>0x4081f3d4:  40997614 40322c28 40322e10 4081f67c
>0x4081f3e4:  4095a025 0000004c 40322e28 4081f410
>Backtrace:
>=>1 0x40e42e67  ?? +0x17 in libx11.so.6 (0x4081f3bc)
>  2 0x40dd85e3 X11DRV_CreateDC+0x87(hdc=0x4c, pdev=0x40322e28, driver=0x4081f410, device=0x0, output=0x0, initData=0x0) [/home/wine/wine/dlls/x11drv/init.c:153] in x11drv (0x4081f3e0)
>  3 0x4095a025 CreateDCW+0xed(driver=0x408d2f50, device=0x0, output=0x0, initData=0x0) [/home/wine/wine/dlls/gdi/dc.c:609] in gdi32 (0x4081f67c)
>  4 0x40861503 CURSORICON_CreateFromResource+0x65f(hModule=0x0, hObj=0x0, bits=0x408c5740, cbSize=0x134, bIcon=0x0, dwVersion=0x30000, width=0x20, height=0x20, loadflags=0x8040) [/home/wine/wine/dlls/user/../../windows/cursoricon.c:711] in user32 (0x4081f70c)
>  5 0x408616eb CURSORICON_Load+0x12f(hInstance=0x0, name=0x7f00, width=0x0, height=0x0, colors=0x1, fCursor=0x1, loadflags=0x8040) [/home/wine/wine/dlls/user/../../windows/cursoricon.c:971] in user32 (0x4081f75c)
>  6 0x4086390f LoadImageW+0x8b(hinst=0x0, name=0x7f00, type=0x2, desiredx=0x0, desiredy=0x0, loadflags=0x8040) [/home/wine/wine/dlls/user/../../windows/cursoricon.c:2272] in user32 (0x4081f790)
>  7 0x40862a5e LoadCursorW+0x26(hInstance=0x0, name=0x7f00) [/home/wine/wine/dlls/user/../../windows/cursoricon.c:1715] in user32 (0x4081f7b4)
>  8 0x41747762 IMM_Register+0x5a [/home/wine/wine/dlls/imm32/imm.c:107] in imm32 (0x4081f800)
>  9 0x417478d8 DllMain+0x78(hInstDLL=0x41740000, fdwReason=0x1, lpReserved=0x0) [/home/wine/wine/dlls/imm32/imm.c:146] in imm32 (0x4081f814)
>  10 0x41746f88 __wine_dll_main+0x60 in imm32 (0x4081f844)
>  11 0x401a2cee call_dll_entry_point+0x12 in ntdll (0x4081f85c)
>  12 0x401a3d07 MODULE_InitDLL+0xe3(wm=0x40322b80, reason=0x1, lpReserved=0x0) [/home/wine/wine/dlls/ntdll/loader.c:741] in ntdll (0x4081f8cc)
>  13 0x401a3ee4 process_attach+0xf8(wm=0x40322b80, lpReserved=0x0) [/home/wine/wine/dlls/ntdll/loader.c:814] in ntdll (0x4081f8f0)
>  14 0x401a56e0 LdrLoadDll+0x84(path_name=0x40322ab8, flags=0x0, libname=0x4081f954, hModule=0x4081f934) [/home/wine/wine/dlls/ntdll/loader.c:1565] in ntdll (0x4081f914)
>  15 0x40466d73 load_library+0x4b(libname=0x4081f954, flags=0x0) [/home/wine/wine/dlls/kernel/module.c:671] in kernel32 (0x4081f944)
>  16 0x40466e3a LoadLibraryExW+0x2e(libnameW=0x40014c00, hfile=0x0, flags=0x0) [/home/wine/wine/dlls/kernel/module.c:726] in kernel32 (0x4081f964)
>  17 0x40466dfe LoadLibraryExA+0x2e(libname=0x40e0bfc4, hfile=0x0, flags=0x0) [/home/wine/wine/dlls/kernel/module.c:707] in kernel32 (0x4081f97c)
>  18 0x40466e70 LoadLibraryA+0x1c(libname=0x40e0bfc4) [/home/wine/wine/dlls/kernel/module.c:746] in kernel32 (0x4081f994)
>  19 0x40df2064 LoadImmDll+0x1c [xim.c:78] in x11drv (0x4081f9a4)
>  20 0x40df29bb X11DRV_SetupXIM+0x127(display=0x7801c0b8, input_style=0x40e15978) [/home/wine/wine/dlls/x11drv/xim.c:440] in x11drv (0x4081f9d4)
>  21 0x40deb656 x11drv_init_thread_data+0x11a [/home/wine/wine/dlls/x11drv/x11drv_main.c:502] in x11drv (0x4081f9f0)
>  22 0x40dc41d1 X11DRV_create_desktop+0x289(desktop_vi=0x0, geometry=0x78020580) [/home/wine/wine/dlls/x11drv/desktop.c:251] in x11drv (0x4081fa78)
>  23 0x40deb3ac process_attach+0x150 [/home/wine/wine/dlls/x11drv/x11drv_main.c:395] in x11drv (0x4081fa9c)
>  24 0x40deb761 DllMain+0x39(hinst=0x40db0000, reason=0x1, reserved=0x0) [/home/wine/wine/dlls/x11drv/x11drv_main.c:524] in x11drv (0x4081faa8)
>  25 0x40dbb6d4 __wine_dll_main+0x60 in x11drv (0x4081fad8)
>  26 0x401a2cee call_dll_entry_point+0x12 in ntdll (0x4081faf0)
>  27 0x401a3d07 MODULE_InitDLL+0xe3(wm=0x40322978, reason=0x1, lpReserved=0x0) [/home/wine/wine/dlls/ntdll/loader.c:741] in ntdll (0x4081fb60)
>  28 0x401a3ee4 process_attach+0xf8(wm=0x40322978, lpReserved=0x0) [/home/wine/wine/dlls/ntdll/loader.c:814] in ntdll (0x4081fb84)
>  29 0x401a56e0 LdrLoadDll+0x84(path_name=0x403228a8, flags=0x0, libname=0x4081fbe8, hModule=0x4081fbc8) [/home/wine/wine/dlls/ntdll/loader.c:1565] in ntdll (0x4081fba8)
>  30 0x40466d73 load_library+0x4b(libname=0x4081fbe8, flags=0x0) [/home/wine/wine/dlls/kernel/module.c:671] in kernel32 (0x4081fbd8)
>  31 0x40466e3a LoadLibraryExW+0x2e(libnameW=0x40014c00, hfile=0x0, flags=0x0) [/home/wine/wine/dlls/kernel/module.c:726] in kernel32 (0x4081fbf8)
>  32 0x40466dfe LoadLibraryExA+0x2e(libname=0x4081fc44, hfile=0x0, flags=0x0) [/home/wine/wine/dlls/kernel/module.c:707] in kernel32 (0x4081fc10)
>  33 0x40466e70 LoadLibraryA+0x1c(libname=0x4081fc44) [/home/wine/wine/dlls/kernel/module.c:746] in kernel32 (0x4081fc28)
>  34 0x408c2c42 load_driver+0x7a [user_main.c:75] in user32 (0x4081fd60)
>  35 0x408c321f process_attach+0x47 [/home/wine/wine/dlls/user/user_main.c:180] in user32 (0x4081fd70)
>  36 0x408c33cc DllMain+0x50(inst=0x40840000, reason=0x1, reserved=0x1) [/home/wine/wine/dlls/user/user_main.c:260] in user32 (0x4081fd80)
>  37 0x40851218 __wine_dll_main+0x60 in user32 (0x4081fdb0)
>  38 0x401a2cee call_dll_entry_point+0x12 in ntdll (0x4081fdc8)
>  39 0x401a3d07 MODULE_InitDLL+0xe3(wm=0x402f0908, reason=0x1, lpReserved=0x1) [/home/wine/wine/dlls/ntdll/loader.c:741] in ntdll (0x4081fe38)
>  40 0x401a3ee4 process_attach+0xf8(wm=0x402f0908, lpReserved=0x1) [/home/wine/wine/dlls/ntdll/loader.c:814] in ntdll (0x4081fe5c)
>  41 0x401a3f13 process_attach+0x127(wm=0x402f07c8, lpReserved=0x1) [/home/wine/wine/dlls/ntdll/loader.c:806] in ntdll (0x4081fe7c)
>  42 0x401a5fe6 LdrInitializeThunk+0x1f2(main_file=0x0, unknown2=0x0, unknown3=0x0, unknown4=0x0) [/home/wine/wine/dlls/ntdll/loader.c:1902]
>in ntdll (0x4081ff20)
>  43 0x40471433 start_process+0x9b(arg=0x0) [/home/wine/wine/dlls/kernel/process.c:1036] in kernel32 (0x4081fff4)
>  44 0x400298f5 wine_pthread_abort_thread+0x29(status=0x0) [port.c:85] in libwine.so.1 (0x00000000)
>0x40e42e67  ?? +0x17 in libx11.so.6: movl       0x4d0(%edx),%eax
>Wine-dbg>
>
>  
>






More information about the wine-devel mailing list