[AWS] Freeing allocated streams

Patrice Freydiere frett27 at free.fr
Tue Dec 26 10:45:03 CET 2006


Hi the list, happy christmas and new year !!

i've got a small issue i want to talk with you. As the imgsvr 
implementation is growing, picture size are going larger and larger.
for the full resolution data sending i used a byte array structure 
allocated on the stack (inside a declare/end block). this is clearly not 
cool for large pictures.
I've tried first to enlarge the stack size using (--XLinker .. and 
consort mentionned in the gnat gpl 2006 user manual) with no effects.

so i'm looking for providing an abstract stream that permit me to send 
the full picture by chunks (the picture will be stored on disk or on the 
head)... My API don't rely directly on AWS data structures (the catalog 
package almost).

i 've not seen such functionnality on aws, that permit me to provide a 
custom stream (not a ressource stream), which can tell me that the 
stream has been close to help me free the heap memory allocation.

do you see any simple solutions for that ?

(i'm looking for keeping the database storage managment, so i will have 
a similar problem with the blob allocation / desallocation with the 
database API)


than'ks for you replies,
Patrice



More information about the AWS mailing list