[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] OpenAL: applications and test programs crash
From: |
Martin Lambers |
Subject: |
Re: [Mingw-cross-env-list] OpenAL: applications and test programs crash |
Date: |
Sat, 27 Nov 2010 19:44:41 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 |
On 27/11/10 16:12, Mark Brand wrote:
>> OpenAL builds fine, but applications using it crash. This even happens
>> with the openal-info.exe binary that is automatically built, and with
>> the test-openal.exe binary.
>
> I just tried test-openal.exe using wine and got this:
>
> err:ntdll:RtlpWaitForCriticalSection section 0x434048 "?" wait timed out
> in thread 0009, blocked by 0000, retrying (60 sec)
Thanks for confirming that this is not just a problem on my system.
I found the problem. OpenAL has initialization and deinitialization
functions alc_init() and alc_deinit(), defined in Alc/ALc.c. On Windows,
these are called via automatic execution of DllMain by default. In our
case, we have to use the gcc constructor/destructor attributes instead,
like non-Windows platforms do.
The attached patch makes this change by augmenting the
openal-1-fixes.patch file.
Both openal-info.exe and test-openal.exe now work for me.
Martin
openal.patch
Description: Text Data
- [Mingw-cross-env-list] OpenAL: applications and test programs crash, Martin Lambers, 2010/11/27
- Re: [Mingw-cross-env-list] OpenAL: applications and test programs crash, Mark Brand, 2010/11/27
- Re: [Mingw-cross-env-list] OpenAL: applications and test programs crash, Volker Grabsch, 2010/11/27
- Re: [Mingw-cross-env-list] OpenAL: applications and test programs crash,
Martin Lambers <=
- Re: [Mingw-cross-env-list] OpenAL: applications and test programs crash, Mark Brand, 2010/11/27
- Re: [Mingw-cross-env-list] OpenAL: applications and test programs crash, Mark Brand, 2010/11/27
- Re: [Mingw-cross-env-list] OpenAL: applications and test programs crash, Volker Grabsch, 2010/11/27
- Re: [Mingw-cross-env-list] OpenAL: applications and test programs crash, Martin Lambers, 2010/11/28
- Re: [Mingw-cross-env-list] OpenAL: applications and test programs crash, Volker Grabsch, 2010/11/28