hey all,

i'm getting an error when trying to allocate space in a program.

it's CEE0808:

Message . . . . :   Requested storage size is not valid.
Cause . . . . . :   Requested storage size is not a positive number.  The
  exception occurred in procedure CEEGTST.
Recovery  . . . :   Use a valid argument and try the operation again.

this is the pertinant code:

D Buffer          S               *
D BuffSize        S             10I 0 INZ(16776704)

      i tried:

C                   eval      Buffer=%alloc(BuffSize)

      and

C                   eval      Buffer=%alloc(16776704)

and I get the same message.  It it virtually the first line of code in the
program.

A full dump of the program shows, at the time of the error,

NAME                  ATTRIBUTES           VALUE
BUFFSIZE              INT(10)              16776704         '00FFFE00'X

thanks,

Rick



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.