[Media_api] portmidi crash cleanup questions
John Stewart
js at woh.rr.com
Thu Apr 10 15:11:55 PDT 2008
I'm looking into using portmidi. And I quickly noticed whole pm_dll.dll
thing being used to close devices on exit/crash.
Questions
1. The README_WIN.txt seems to imply that pm_dll.dll is the way to go.
But a comment in pm_win.c in the pm_init function says atexit works just
as well. Which one is accurate?
2. Have you looked into using the SetUnhandledExceptionFilter Windows
API function to handle shutdown in case of a crash?
I'd like to get rid of the need for the DLL if possible, but if it's the
best way then I guess that's the way it is.
Thanks,
John Stewart
More information about the media_api
mailing list