0
0

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

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

Its not a pointer, so don’t call that function on fmod handles.

  • You must to post comments
0
0

wow I’m a n00b. Thanks guys!

  • You must to post comments
0
0

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

  • You must to post comments
0
0

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.

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.