>>134
The point of GC is exactly that -- to avoid that error message about there not being enough memory. Programs could choose to just never free any allocations and most of them work just fine. But even though 4GB is fairly standard these days, and modern OSes use page files to extend further, it's still finite.
Imagine writing an MP3 player that loaded the entire file into memory, decompressed it, played it, and then just left it there. You'd have to close it and restart it after a few hours of music.
You can't solve the problem with code analysis, as
>>127 and
>>131 pointed out.