This is something that only happens once every million years, it's really really minor, but in case someone's good at debugging, I'm posting it here.
Basically, every once in a while when quitting OpenXcom on Windows, it crashes. That's right, it crashes right when exiting, what tough timing. And there's absolutely no helpful debug information, this is all I can get:
Message:
First-chance exception at 0x75b7830e in OpenXcom.exe: 0xC0000005: Access violation reading location 0x00000020.
Unhandled exception at 0x75b7830e in OpenXcom.exe: 0xC0000005: Access violation reading location 0x00000020.
Stack Trace:
> ole32.dll!75b7830e()
[Frames below may be incorrect and/or missing, no symbols loaded for ole32.dll]
ole32.dll!75b78526()
ole32.dll!75b41df2()
dsound.dll!5ad6e880()
dsound.dll!5ad6e668()
dsound.dll!5ad6e60f()
dsound.dll!5ad6e43a()
dsound.dll!5ad73ea0()
dsound.dll!5ad73e2e()
dsound.dll!5ad6e43a()
dsound.dll!5ad735e9()
dsound.dll!5ad73606()
dsound.dll!5ad73a7c()
dsound.dll!5ad73646()
SDL.dll!6813d4fe()
SDL.dll!681021a6()
ntdll.dll!7760fa7a()
ntdll.dll!77630e92()
ntdll.dll!77629d15()
Given the crash only happens on exit, it's likely that something isn't getting destroyed properly, but tracking it down is damn-near impossible, given how random it is, and by the time it happens the program is far away from my own code and deep in Windows' own sub-routines. So if anyone's got an obscene amount of time to waste...