You'll have to post more since we don't see how you are allocating your array and please use the code tags when posting code!