It could be that you've overrun a buffer somehow (e.g. too high values for FillChar, Move and the like), which would clobber nearby variables on the stack. It's hard to say without code -- could you post some please?