Hi there! Thanks for the help, I managed to run Peter's test using the 5.1 source I git from http://www.liballeg.org/git.html :O)
First I built the 5.1 sources and test code in Debug mode, I let the test run for about 15mins, it did about 50000 iterations of the for loop. The logfile grew to about 200MB, but it didn't crash/hang so I stopped it.
I then decided to build the 5.1 sources and test code Release mode (just wanted to see if I could get it to crash/hang using the 5.1 sources). Could only figure out how to build allegro in RelWithDebInfo DLLs so I used those. Left the test running for 15mins, but it still didn't crash/hang within that time so I stopped it.
I then decided to build the test code with my 5.0.7 Debug sources (pre-built ones I downloaded a while ago). Left the test for 15mins, no crash/hang within that time.
I then decided to build the test code with my 5.0.7 Release sources. It hung immediately in al_unistall_audio(). But I noticed if I commented in the "al_rest(0.001)" line it would run fine.
One thing that is probably not worth mentioning, when using the 5.1 sources, if I clicked on any minimized window on my task bar while running the test, it trigged the assert call stack below. After I read what was in the call stack, I just made sure I didn't click on anything during subsequent test runs.
msvcr90d.dll!_NMSG_WRITE(int rterrnum=10) Line 198 C
msvcr90d.dll!abort() Line 59 + 0x7 bytes C
msvcr90d.dll!_wassert(const wchar_t * expr=0x10026a4c, const wchar_t * filename=0x10026a08, unsigned int lineno=83) Line 163 C
> allegro_audio-debug-5.1.dll!al_create_voice(unsigned int freq=44100, ALLEGRO_AUDIO_DEPTH depth=ALLEGRO_AUDIO_DEPTH_INT16, ALLEGRO_CHANNEL_CONF chan_conf=ALLEGRO_CHANNEL_CONF_2) Line 83 + 0x5b bytes C
allegro_audio-debug-5.1.dll!create_default_mixer() Line 87 + 0xf bytes C
allegro_audio-debug-5.1.dll!al_restore_default_mixer() Line 303 + 0x5 bytes C
allegro_audio-debug-5.1.dll!al_reserve_samples(int reserve_samples=16) Line 212 + 0x5 bytes C
my_audio_bug.exe!main() Line 29 + 0xa bytes C++
my_audio_bug.exe!__tmainCRTStartup() Line 586 + 0x19 bytes C
my_audio_bug.exe!mainCRTStartup() Line 403 C
kernel32.dll!_BaseProcessStart@4() + 0x23 bytes