Size of freed arrays
- tinman
- PureBasic Expert

- Posts: 1102
- Joined: Sat Apr 26, 2003 4:56 pm
- Location: Level 5 of Robot Hell
- Contact:
Size of freed arrays
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?
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
(WinXPhSP3 PB5.20b14)
Re: Size of freed arrays
Post by Fred » Mon Oct 19, 2009 20:19
http://www.purebasic.fr/english/viewtop ... ze#p303466I modified ArraySize(), so it will return -1 if the array isn't declared.
- tinman
- PureBasic Expert

- Posts: 1102
- Joined: Sat Apr 26, 2003 4:56 pm
- Location: Level 5 of Robot Hell
- Contact:
Re: Size of freed arrays
Hi einander,
Excellent, thank you.
Excellent, thank you.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
(WinXPhSP3 PB5.20b14)
Re: Size of freed arrays
You're welcome.
