Flash and RAM size check

Hi everyone,
I need a programcode to check the current size of free flash and RAM. I’ve tried a few things out of sampleprograms but when I create an array of size 5120 for example and check the size before and after creating the array the size is just the same so I don’t know any further.
So help please.
Spear

The information in the following Ask Larry article will help:
http://www.rabbit.com/support/ask_larry/2009/1208.shtml