Page 1 of 1

Size of freed arrays

Posted: Tue Jul 05, 2011 9:50 pm
by tinman
If I free an array and then use ArraySize() I get a result of -1. Is this something that can be relied on going forward?

Re: Size of freed arrays

Posted: Tue Jul 05, 2011 10:27 pm
by einander
Post by Fred ยป Mon Oct 19, 2009 20:19
I modified ArraySize(), so it will return -1 if the array isn't declared.
http://www.purebasic.fr/english/viewtop ... ze#p303466

Re: Size of freed arrays

Posted: Tue Jul 05, 2011 10:50 pm
by tinman
Hi einander,

Excellent, thank you.

Re: Size of freed arrays

Posted: Tue Jul 05, 2011 11:07 pm
by einander
You're welcome.