[Openal] Verify device closed
David Guthrie
dguthrie at alionscience.com
Fri Aug 14 11:39:25 PDT 2009
I'm trying to verify that a device and a context are being closed/
destroyed as part of a unit test. I can't seem to find a way that
works on all implementations. The best I can tell with the context is
to try to make it current and see if it returns NULL. It seems like I
should get an error in that case, but I don't always, and trying to
destroy it should fail because it's destroyed already.
With the device, if I try to destroy the device again, it returns
false in some implementations, but in others it crashes.
I know this is like trying to verify that memory has been deleted,
although we do that with reference counted pointers, but does anyone
have any ideas?
---
David Guthrie
dguthrie at alionscience.com
Alion Science and Technology
BMH Operation - A CMMI Maturity Level 3 Organization
5365 Robin Hood Road, Suite 100
Norfolk, VA 23513-2416
(757) 857-5670, ext 269, Fax (757) 857-6781
More information about the Openal
mailing list