From: Robert Klemme Date: 2011-01-21T18:13:01+09:00 Subject: Re: sorting songs to directories On Thu, Jan 20, 2011 at 7:55 PM, Mikhail Slyusarev wrote: > pretty much, yes (i'm just learning ruby). > > but this doesn't address the issue Well, there isn't much online docs for TagLib2. There are two possible explanations - You don't use the lib properly (e.g. by not closing TagLib2::File that you create). - There is a bug in the lib. Personally I'd create a simple test which ensures repeated reading of tag files yields identical results, e.g. Dir["**/*.{mp3,mp4,wma,flac,ogg,ape,wav,vox,aac,m4p,3gp,m4a}"].each do |f| 5.times do |i| begin tlf = TagLib2::File.new(f) p tlf tlf.close rescue Exception => e printf "Attempt %3d: Exception for file %s: %p\n", i, f, e end end end Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/