I am getting an event pointer from FMOD::EventGroup::getEvent and the FMOD_RESULT is FMOD_OK.
The problem is that the pointer (according to windows) is bad. I call IsBadReadPtr on it and that fails. I’m hoping that I’m doing something wrong, but fmod doesnt care about the pointer and uses it just fine. I can get that event playing and updating just fine.
Any help or insight would be appreciated!
- werlkjh asked 10 years ago
Is there any documentation about which pointers I get from fmod are actual pointers and which ones are handles?
I need to be able to assert that the pointers are valid if they are pointers otherwise if they are handles I’ll just check for non nullity (not a word).
No, you’re not supposed to know what fmod uses. If the handle is invalid, fmod will tell you when you try to use it on a function. The exception to this i think are sounds, but any time it is not valid, the creation function would return an error, and the pointer would be nulled, in fact, there are not going to be any ‘invalid handles’. They are going to be null, or valid.
Please login first to submit.