Did you test this on Mac OS X?  What results are returned there?

On Thu, Mar 8, 2018 at 11:14 amon <[email protected]> wrote:

> 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    |
> | [email protected]       "Data Systems for Deep Space and Time"     |
> +---------------------------------------------------------------+
>
> _______________________________________________
> Discuss-gnustep mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep
>
-- 
Gregory Casamento
GNUstep Lead Developer / OLC, Principal Consultant
http://www.gnustep.org - http://heronsperch.blogspot.com
http://ind.ie/phoenix/
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to