Hi,<br>I am trying to write a title to a file and the save function keeps giving me an error saying the &quot;Vector Subscript out of range&quot;. It happens at this operation:<br>::memcpy(DATA(d) + originalSize, DATA(v.d), 
v.size());<br><br>Here is what the stack looks like<br>&nbsp;&nbsp;&nbsp;&nbsp; tag.dll!TagLib::ByteVector::append(const TagLib::ByteVector &amp; v={...})&nbsp; Line 439&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; tag.dll!TagLib::ID3v2::CommentsFrame::renderFields()&nbsp; Line 136 + 0x80 bytes&nbsp;&nbsp;&nbsp; C++
<br>&nbsp;&nbsp;&nbsp;&nbsp; tag.dll!TagLib::ID3v2::Frame::render()&nbsp; Line 112 + 0x13 bytes&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; tag.dll!TagLib::ID3v2::Tag::render()&nbsp; Line 348 + 0x16 bytes&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; tag.dll!TagLib::MPEG::File::save(int tags=65535, bool stripOthers=true)&nbsp; Line 305 + 0x29 bytes&nbsp;&nbsp;&nbsp; C++
<br>&nbsp;&nbsp;&nbsp;&nbsp; tag.dll!TagLib::MPEG::File::save(int tags=65535)&nbsp; Line 267&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; tag.dll!TagLib::MPEG::File::save()&nbsp; Line 262&nbsp;&nbsp;&nbsp; C++<br><br><br>I am just using the writer example to write in a Win32 environment:<br><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TagLib::FileRef f(file_name);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TagLib::String value = new_title;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TagLib::Tag *t = f.tag();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t-&gt;setArtist(value);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; f.file()-&gt;save();
<br><br>Any ideas on what I am doing wrong here? Any help would be appreciated.<br><br>Thanks,<br>Satysehwar<br>