Strange crash....with W2K with free on SDL_Mixer

Hi,

I am using VS .NET 2003 to develop on Win2K and WinXP. Got an odd bug with WIN2K…

When I do this on XP:

rw = SDL_RWFromFile(“bleh.ogg”,“rb”);
music = Mix_LoadMUS_RW(rw)

Mix_HaltMusic();
SDL_FreeRW(rw);
Mix_FreeMusic(music);

it works fine.

But when I run it on Win2K it crashes on Mix_FreeMusic.

Check if music pointer is null etc etc…all seems valid. Suspect it is something to do with some threads perhaps. I know if I interchange SDL_FreeRW and Mix_FreeMusic …it crashes on SDL_FreeRW instead on WIN2K. Using mixer 1.27 btw.

Thanks,

Terence