0
0

Hi,

Crash minidump from live product, FMOD 4.14.04, Win XP:

[code:1bz8y3wf]
FUN_ASSERT(p_stream != NULL);

std::string string_details;

FMOD_TAG tag;
FMOD_RESULT result;

result = p_stream->getTag("TITLE", 0, &tag);
if (result == FMOD_OK)
{
    string_details += "\"";
    string_details += (char *)tag.data;  
                            string_details += "\"";
}

[/code:1bz8y3wf]

tag.data is NULL:

  • tag {type=FMOD_TAGTYPE_SHOUTCAST datatype=FMOD_TAGDATATYPE_STRING name=0x01f6bf00 <Bad Ptr> …} FMOD_TAG
    type FMOD_TAGTYPE_SHOUTCAST FMOD_TAGTYPE
    datatype FMOD_TAGDATATYPE_STRING FMOD_TAGDATATYPE
  • name 0x01f6bf00 <Bad Ptr> char *
    data 0x00000000 void *
    datalen 16 unsigned int
    updated 0 int

Should getTag be returning an error, or do we need to test for NULL tag data?

Cheers,

Tom
http://www.armyofearth.com

  • You must to post comments
0
0

Bump. An answer would be appreciated…

Tom
http://www.armyofearth.com

  • You must to post comments
0
0

[quote="fundictive":1952npsy]Bump. An answer would be appreciated…

Tom
http://www.armyofearth.com[/quote:1952npsy]

Perhaps you could double check tag.name != NULL then tag.data != NULL

  • You must to post comments
0
0

I got this crash again today.

Be aware that tag.data can be NULL.

Tom
http://www.armyofearth.com

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.