http://bugs.winehq.org/show_bug.cgi?id=18640
--- Comment #30 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2011-07-20 15:51:46 CDT --- This also seems to affect all .Net 4.0 apps that use WPF.
I installed .Net 4.0 on a fresh wine using the hack from bug 10601: http://bugs.winehq.org/show_bug.cgi?id=10601#c15 (also delete registrykey HKLM\Software\MicroSoft\Net Framework\NDP\v4, otherwise it says .Net 4.0 is already installed and set mscoree to builtin). Installer finishes fine and non-WPF apps seem to run fine (i tested EVEMon and PhotoMagician), so i guess installation is ok.
For the WPF-apps i tested i also had to return RPC_S_NOT_LISTENING for RpcMgmtIsServerListening in rpcrt4/rpc_server.c, then i get the same crash as in this bug:
fixme:d3d9:IDirect3D9ExImpl_GetAdapterDisplayModeEx iface 0x16f520, adapter 0, mode 0x16fa04, rotation 0x16fa1c stub! err:ntdll:vDbgPrintExWithPrefix 63: MIL FAILURE: Unexpected HRESULT 0x80004001 in caller: The render thread failed unexpectedly.
However, disabling d3d9 doesn't work, and using patch in this bug for IDirect3D9ExImpl_GetAdapterDisplayModeEx doesn't change anything either: I always get the same crash:
fixme:driver:GdiEntry13 stub fixme:win:EnumDisplayDevicesW ((null),0,0x4e2e5b0,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),1,0x4e2e5b0,0x00000000), stub! wine: Unhandled exception 0x40000015 at address 0x790ef33a (thread 0028), starting debugger... fixme:advapi:UnregisterTraceGuids 0: stub Process of pid=0008 has terminated No process loaded, cannot execute 'echo Modules:' Cannot get info on module while no process is loaded No process loaded, cannot execute 'echo Threads:' louis@qaqaqaqaqaqaqa:~/Desktop/troep/WPFProject/bin/Debug$ process tid prio (all id:s are in hex) 0000000e services.exe 0000002e 0 0000002d 0 00000024 0 0000001e 0 00000018 0
According to google exception 0x40000015 is STATUS_FATAL_APP_EXIT. Maybe yet another bug is playing a role here?
Notee: Minimal WPF app for .Net 4.0 for example http://www.codeproject.com/KB/WF/wcf-wpf-wf-hello-world/wpfwcfwf.zip