<div dir="ltr">Hello all,<div><br></div><div>I have been wresting with the upgrade to 1.9.1 from 1.7 for some time now, and I think I am very near to the end. I have it all working exactly as I want in debug, reading tags and embedded artwork beautifully. </div>
<div>Unfortunately it crashes in release. </div><div><br></div><div>I have build the release with debug information, and statically linked taglib, so I can get into the guts of the problem. </div><div><br></div><div>It is creating a file reference, then reading the tag:-</div>
<div><br></div><div><div><i>bool expandFile(QDir dir, QString file, QString albumName, QString artistName, QByteArray fileArtwork)</i></div><div><i> { </i><i> </i></div><div><i> </i></div><div><i>#ifdef Q_OS_WIN32</i></div>
<div><i> TagLib::FileRef f( reinterpret_cast<const wchar_t*>(path.utf16()) );</i></div><div><i>#else</i></div><div><i> TagLib::FileRef f(path.toUtf8().data());</i></div><div><i>#endif<span class="" style="white-space:pre"> </span></i></div>
<div><span class="" style="white-space:pre"><i> </i></span></div><div><i><span class="" style="white-space:pre"> </span>TagLib::Tag* tags = f.tag();</i></div><div><i> TagLib::AudioProperties* ap = f.audioProperties();</i></div>
</div><div><i><br></i></div><div><i><br></i></div><div>In debug this works fine, but in release, it is not getting valid data for "f", and is crashing out in the taglib code in tfile.cpp at:-</div><div><br></div>
<div><i>bool File::isOpen() const</i></div><div><i>{</i></div><div><i> return d->stream->isOpen();</i></div><div><i>}</i></div><div><i><br></i></div><div>I feel so close to the final fix here that I can taste it. Can anyone provide any insights here?</div>
<div><br></div><div>Gayle Reid</div></div>