[comp.sys.mac.programmer] Help with NewPtr

wolf@piquet.cipl.uiowa.edu (Michael J. Wolf) (06/23/91)

I am trying to allocate a pixmap which needs to be 64k bytes in size.

When I do Newptr(64k) it will not return a ptr.  I tried with 32k size
pixmap but t will not return that as well.

I am using Think Pascal 3.02 on a IIci with 8megs.  3Meg allocated to 
TP.  I have set the Run otions zone size to 1Meg, Stack size to 64k.

In my initialization I do MaxApplZone, then try to do the allocating of
memory to various pixmaps and data structures.

But it will not allocate a 64k or even 32k Ptr.  It has worked previously
on pixmap of 32k-128bytes.  So just under 32k it is ok, but not over.

Are Ptr's limited to 32k?  I di not think they were.

Any suggestions?

Michael.