You might be causing a memory leak. Check process manager and see with how much memory you are working. Watch it for some time and see if it just keeps increasing.