On Sun, 20 Feb 2000, Marcus Meissner wrote: > On Fri, Feb 18, 2000 at 05:51:30PM +0100, Marco Pietrobono wrote: > > hi, I'm currently hunting down a frequent crash related to dsound.dll. > > > > while I was trying to play Baldur's Gate with wine, I have discovered > > that wine crashed quite often due to some problem with dsound buffers. > > > > I have included dumps from wine-dbg from three different crashes. In > > the third case, I was running wine with -debugmsg +trace,+dsound but I > > have included only the last few lines, plus a dump of dsound variables > > as seen in the debugger. this last crash has happened while BG was > > changing the scene. > > > > I have looked at wine's dsound_main.c source, and from this as well as > > from the previous output I have come to a conclusion: it seems to me > > that the application which is using dsound.dll services (currently > > Baldur's Gate) is able to release a DSoundBuffer even during > > DSOUND_Thread_MixPrimary (and/or DSOUND_MixIn) primary buffer > > processing. DSOUND_Thread_MixPrimary is using > > > > for (i = dsound->nrofbuffers - 1; i >= 0; i--) { > > Well spotted. I have added, as you suggested, another critical section Oh yeah, good to see something I mentioned a year ago finally fixed... (I used to keep a crude fix (too crude to submit) around on my wine tree at home, but since I'm currently studying far away from home, I don't have access to it.)