How many codes are you running?

It depends, the DS only has 4 MB of RAM to run.

Thus, letting many many codes to be on, unless they are smaller than most codes.