0
0

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.
Thanks.

  • You must to post comments
0
0

Please show me how you get this because I was using infoonly all of yesterday and there were no problems.

It doesnt just happen if you take a simple project, get an event with info only flag, and use it.

  • You must to post comments
0
0

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)

  • You must to post comments
0
0

[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:

[code:2vm4zb7d]
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);
........
}
[/code:2vm4zb7d]

The exception is thown in the getInfo call. Everything seems initialized and valid to me, but maybe I am just tired.

Thanks.

  • You must to post comments
0
0

Can you reproduce that outside of your application? I’ve been doing exactly that in a number of projects and no crash here.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.