cstring returning invalid encoding? mp3's

rengels ralf.engels at nokia.com
Tue Sep 22 13:18:07 CEST 2009


On Tuesday 22 September 2009 01:55:49 am ext Caleb Cushing wrote:
> figured it out 20-ish minutes ago... memory corruption. apparently the
> memory was popping off the stack before the pointer was assigned (or
> something like that).  using an intermediate variable.
> 
> 
>             TagLib::String s( tfile.tag()->title() );
>             const char *ttitle = s.toCString(true);
> 
> has solved this issue.
> 

Hi Caleb,
it should not do that.
As tfile does not run out of scope tag and tag->title should also remain valid.
Strange...

BR,
Ralf


More information about the taglib-devel mailing list