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 September 5th, 2009, 01:30 PM
haden haden is offline
Registered User
 
Join Date: Sep 2009
Posts: 3
ArgumentOutOfRangeException

Hi

I have one mp3 file that fails when I try to do aread on the file.
It works fine with all my other files.

ultraId.Read(fileList[i].FullName);

returns this:

System.ArgumentOutOfRangeException was unhandled
Message="Non-negative number required.\r\nParameter name: value"
Source="mscorlib"
ParamName="value"
StackTrace:
at System.IO.FileStream.set_Position(Int64 value)
at HundredMilesSoftware.UltraID3Lib.ID3v1Tag..ctor(Bi naryReader A_0, String A_1)
at HundredMilesSoftware.UltraID3Lib.UltraID3.Read(Str ing trackFileName)
at KCplayer.MainForm.ScanDirectory(Object basePathObject) in E:\work\mp3player\KCplayer\MainForm.cs:line 115
at System.Threading._ThreadPoolWaitCallback.WaitCallb ack_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWa itCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWa itCallback(Object state)
InnerException:

Please help

Regards
Kim
Reply With Quote
  #2  
Old September 6th, 2009, 03:47 AM
haden haden is offline
Registered User
 
Join Date: Sep 2009
Posts: 3
solved

Hi

The problem was that the file itself was corrupted somehow.

Kim
Reply With Quote
  #3  
Old September 7th, 2009, 07:20 AM
tusk tusk is offline
Registered User
 
Join Date: May 2007
Posts: 102
Yep.. you should place your code in a try ... catch block to handle those "bad encoded mp3 files"...
Reply With Quote
Reply

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 05:10 AM.


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