Global variables: loosing the value

I have the same problem in a big project. This sucks! How do I know when the memory is "out"????
Shouldn't the arduino IDE tell me?