I am trying to get a handle on storage leaks and NSZoneStat()
would be ideal... except it doesn't work.
NSZone *dftzone = NSDefaultMallocZone();
NSZone *curzone = NSZoneFromPointer ( (void *) arglist);
printf ("dft = %lx cur = %lx\n",
(long unsigned int) dftzone,
(long unsigned int) curzone);
struct NSZoneStats zs0 = NSZoneStats (dftzone);
printf ("Bytes Used %d Free %d\n",
(int) zs0.bytes_used,
(int) zs0.bytes_free);
dft = 7ffcfdf26200 cur = 7ffcfdf26200
bin/gpstest: Uncaught exception NSGenericException, reason: No
statistics for default zone
--
+---------------------------------------------------------------+
| Dale Amon Immortal Data |
| CEO Midland International Air and Space Port |
| a...@vnl.com "Data Systems for Deep Space and Time" |
+---------------------------------------------------------------+
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnustep