[Bug 20711] Flatout2 demo crashes on exit

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Mar 25 07:24:01 CDT 2010


--- Comment #12 from Markus <mst at collogia.de>  2010-03-25 07:23:56 ---
To make it short.

the application produces the following call sequence:

- LoadLibrary(dinput8.dll)
  - First reference to this library
- DirectInput8Create()
  - This will nail a second reference to dinput8.dll due to CoCreateInstance
  - compobj will store a separated link to dinput8.DllCanUnloadNow()

- game runs.

- FreeLibrary(Handle_To_Dinput8)
  - destroy first reference to dinput8.dll
- FreeLibrary(Handle_To_Dinput8)
  - This will destroy the last reference to dinput8.dll 
  - dinput8.dll will be unloaded
- CoUninitialize
  - Wants to do its own cleanup of libraries.
  - Therefore calls stored link of dinput8.DllCanUnloadNow()

This fails as the library is already unloaded from memory.

Best regards.

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list