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