Mind Control Forums  

Go Back   Mind Control Forums > Public Categories > Hundred Miles Software > Hundred Miles Software: UltraID3Lib Support

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old January 26th, 2010, 03:03 PM
asegal0000 asegal0000 is offline
Registered User
 
Join Date: Jan 2010
Posts: 6
Index Out Of Bounds on .READ

on my code line:
TestUltraID3.Read(fname)

I get a System.IndexOutOfRangeException

The File is at:
http://www.sendspace.com/file/tgcvxc

the info I got from the error is:

System.IndexOutOfRangeException was unhandled
Message=Index was outside the bounds of the array.
Source=UltraID3Lib
StackTrace:
at HundredMilesSoftware.UltraID3Lib.ID3v23PictureFram e..ctor(Byte[] A_0)
at HundredMilesSoftware.UltraID3Lib.ID3v2Tag.a(Byte[] A_0, String A_1, ID3v23FrameFlags A_2)
at HundredMilesSoftware.UltraID3Lib.ID3v2Tag.b(Binary Reader A_0, Int64& A_1)
at HundredMilesSoftware.UltraID3Lib.ID3v2Tag..ctor(Bi naryReader A_0, String A_1, Int64& A_2)
at HundredMilesSoftware.UltraID3Lib.UltraID3.Read(Str ing trackFileName)
Reply With Quote
  #2  
Old January 30th, 2010, 07:39 PM
MitchHonnert's Avatar
MitchHonnert MitchHonnert is offline
Moderator
 
Join Date: Nov 2005
Location: Cincinnati
Posts: 642
That file has a bad picture frame. I've moved the frame initialization code inside of the main exception handler so you'll get a more meaningful exception now. I'll include this fix in the next version.

Thanks,

- Mitchell S. Honnert
Reply With Quote
Reply

Tags
array, bounds

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -5. The time now is 07:34 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
2003-2008 Rainlands