Click here to Skip to main content
15,916,318 members

Comments by maxpesa (Top 4 by date)

maxpesa 5-Sep-13 10:29am View    
okokok
i finally solved: there was a 16 in StringBuilder[] fname_noex_b = new StringBuilder[16];

i used it at the beginning and now i forgot
sorry and thanks for your help
maxpesa 5-Sep-13 9:41am View    
"decreasing", you intend "songsnum-1" or 16(or everything < 19) instead of 19?
maxpesa 4-Sep-13 6:59am View    
for (int i = 0; i < songsnum ; i++)
{
fileListBef.Items.Add(Path.GetFileName(full_fname_ex[i]));
fname_noex_b[i] = new StringBuilder(Path.GetFileNameWithoutExtension(full_fname_ex[i]));
fname_noex_b[i].Remove(0, toRemove_bef); <---got exception here
fname_noex_b[i].Remove(fname_noex_b[i].Length - toRemove_aft,toRemove_aft);
}
maxpesa 4-Sep-13 6:49am View    
but if i have, for example, 16 items, i don't get indexout, so the loop should be fine.
i got the same problem by the way