I am calling Event::getInfo using an Event created with EVENT_INFOONLY flag. It looks like getInfo has a validate call of some kind (name mangling so I don’t the function name) and throws an exception. This does not happen if I use EVENT_DEFAULT. All of the data I am passing is valid. If I am doing something wrong I would expect an error returned, not an exception thrown. Anyone else seen this? I am using v49.
- droberts asked 10 years ago
[quote="brett":2vm4zb7d]To me it can only be you are using an invalid pointer that is non-null to getInfo – maybe getEventByIndex failed on you for some reason. (ie an uninitialized local variable that wasnt set due to the fail)[/quote:2vm4zb7d]
Here’s what I’m doing:
FMOD::Event* event = NULL;
result = eventGroup->getEventByIndex(index, EVENT_INFOONLY,&event);
if (result == FMOD_OK && event != NULL)
char* eventName = NULL;
int eventIndex = 0;
event->getInfo(&eventIndex, &eventName, 0);
The exception is thown in the getInfo call. Everything seems initialized and valid to me, but maybe I am just tired.
- droberts answered 10 years ago
Please login first to submit.