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!
Thanks,
Kyle
- werlkjh asked 12 years ago
- You must login to post comments
IIRC they are not event pointers, they are refcounted handles. I know this is true of sounds and channels, so I assume it is also true of events.
- Janus answered 12 years ago
- You must login to post comments
Its not a pointer, so don’t call that function on fmod handles.
- Brett Paterson answered 12 years ago
- You must login to post comments
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).
Thanks,
Kyle
- werlkjh answered 12 years ago
- You must login to post comments
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.
- Brett Paterson answered 12 years ago
- You must login to post comments
Please login first to submit.