|
Buck, Why would you need to allocate 16Meg to begin with? I would recommend creating a dynamically resizable User Space, then getting a pointer to that user space and mapping it into your variables. Do you really want to grab 16Meg of memory???? Bob Cozzi Cozzi Consulting www.rpgiv.com -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Pete Clifford (ariadne software) Sent: Thursday, July 03, 2003 11:14 AM To: RPG programming on the AS400 / iSeries Subject: Re: CEE0808 error on %alloc Fine. That sounds about right. It's just a shame the RPG Reference Manual (SC09-2508-04) states: "%ALLOC (Allocate Storage) %ALLOC(num) %ALLOC returns a pointer to newly allocated heap storage of the length specified. The newly allocated storage is uninitialized. The parameter must be a non-float numeric value with zero decimal places. The length specified must be between 1 and 16776704." Pete ----- Original Message ----- From: "Alexei Pytel" <pytel@xxxxxxxxxx> To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx> Sent: Thursday, July 03, 2003 4:44 PM Subject: Re: CEE0808 error on %alloc > The largest single allocation is 16MB - 1 page, which is 16773120. > > Alexei Pytel > always speaking for myself > > > > > > "Buck" <buck.calabro@xxxxxxxxxxxx> > Sent by: rpg400-l-bounces@xxxxxxxxxxxx > 07/03/2003 10:04 AM > Please respond to RPG programming on the AS400 / iSeries > > > To: rpg400-l@xxxxxxxxxxxx > cc: > Subject: Re: CEE0808 error on %alloc > > > > > i'm getting an error when trying to allocate space > > in a program.it's CEE0808: > > D Buffer S * > > D BuffSize S 10I 0 INZ(16776704) > > > > C eval Buffer=%alloc(BuffSize) > > I see the same issue at V5R2. Perhaps this is a PTF? It works if you > grab > 16770018 bytes though. I thought it was related to the amount of storage > already allocated to the program, but adding dome character variables > didn't > change the limit any. Nor did allocating several 16770018 byte buffers. > --buck > > > > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > > > > > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > > > _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.