linux console output gets corrupted with ascii characters
===

Hi I am implementing a software project using C++ on debian. program runs fine for at least 15-20 minutes but after a while console output becomes corrupted, I see lots of ascii characters for most of the characters, but some characters display fine, so output becomes almost unreadable. If I CTRL+C and stop execution, whatever I type on command line is also displayed as weird ascii characters. If I reboot the box and start over, everything works fine for another 15-20 minutes then the same thing happens, does anybody have any idea what might be going on here.