http://bugs.winehq.org/show_bug.cgi?id=20380
--- Comment #28 from Rico kgbricola@web.de 2009-10-21 06:39:03 --- Created an attachment (id=24265) --> (http://bugs.winehq.org/attachment.cgi?id=24265) homm3 debug session
Attached is a log from a homm3 debug session.
For me it looks like the exceptions happen in IWineD3DBaseSurfaceImpl_Blt on an access to dbuf (e.g. memcpy(dbuf, sbuf, width); - ~line 1240 in surface_base.c). It could also happen on other accesses to dbuf in IWineD3DBaseSurfaceImpl_Blt.
The exception doesn't happen all the time, I guess only when dbuf is a dib section which is created/filled by X11DRV_XRender_SetPhysBitmapDepth() (Any idea how to check that?). If I comment the if(!X11DRV_XRender_SetPhysBitmapDepth()) in dib.c then no exceptions are thrown. The game runs fine with these exceptions and disabled sound. My guess is that the combination of the exceptions and the "sound bug" let the game crash. One alone let the game run fine.