I want to index all my music files and store them in a database. I have this function that I call provocatively, starting from the root of my music disc.
i.e.
start > ReadFiles(C:\music\);
ReadFiles(path){
foreach(file)
save to index;
foreach(directory)
ReadFiles(directory);
}
This works fine, but when I run the program, the amount of used memory grows and grows, and finally, my system runs out of memory.
Does anyone have a better approach that doesn't need 4 GB of RAM to complete this task?
Best regards, Tys
source
share