Win32 Port
Andrew Barilla
andrew at exit66.com
Tue Jun 20 22:02:16 CEST 2006
I'm having an issue with the Win32 port. This appears to happen to any of
the ones that have been posted recently. It seems as if the MP3 file I'm
trying to read has a bad tag.
The error is: vector substring is out of range
and the call stack is:
msvcp80d.dll!std::_Debug_message(const wchar_t * message=0x00585e60,
const wchar_t * file=0x00585ea8, unsigned int line=756) Line 23 C++
tag.dll!std::vector<char,std::allocator<char> >::operator[](unsigned
int _Pos=1024) Line 756 + 0x17 bytes C++
tag.dll!TagLib::ByteVector::operator[](int index=1024) Line 537 C++
tag.dll!TagLib::MPEG::File::nextFrameOffset(long position=11659) Line
456 + 0x26 bytes C++
tag.dll!TagLib::MPEG::File::firstFrameOffset() Line 497 C++
tag.dll!TagLib::MPEG::Properties::read() Line 149 + 0xd bytes C++
tag.dll!TagLib::MPEG::Properties::Properties(TagLib::MPEG::File *
file=0x014e4fa0, TagLib::AudioProperties::ReadStyle style=Average) Line
73 C++
tag.dll!TagLib::MPEG::File::read(bool readProperties=true,
TagLib::AudioProperties::ReadStyle propertiesStyle=Average) Line 553 + 0x33
bytes C++
tag.dll!TagLib::MPEG::File::File(const char * file=0x014e4e20, bool
readProperties=true, TagLib::AudioProperties::ReadStyle
propertiesStyle=Average) Line 231 C++
tag.dll!TagLib::FileRef::create(const char * fileName=0x014e4e20, bool
readAudioProperties=true, TagLib::AudioProperties::ReadStyle
audioPropertiesStyle=Average) Line 169 + 0x34 bytes C++
tag.dll!TagLib::FileRef::FileRef(const char * fileName=0x014e4e20, bool
readAudioProperties=true, TagLib::AudioProperties::ReadStyle
audioPropertiesStyle=Average) Line 59 + 0x31 bytes C++
The error also occurrs if whether I use the c or c++ calls:
TagLib::FileRef file(mFileName.c_str());
or
file = taglib_file_new(mFileName.c_str());
Is there a way to check if the file is bad before this point so the app
doesn't crash and burn?
Thanks,
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20060620/06ed321f/attachment.html
More information about the taglib-devel
mailing list