comp.lang.ada
 help / color / mirror / Atom feed
* De-serializing and stack sizes
@ 2006-09-01 17:57 Alex R. Mosteo
  2006-09-02  8:14 ` Dmitry A. Kazakov
  2006-09-02 10:20 ` Simon Wright
  0 siblings, 2 replies; 5+ messages in thread
From: Alex R. Mosteo @ 2006-09-01 17:57 UTC (permalink / raw)


I'm now facing a problem that I don't know how to solve. I'm going to give
some thought to it over the week-end and any ideas are welcome.

I have some objects that I want to serialize to files. For their creation I
use access types so they get created in heap and there's no problem. I
simply output them with

Item_Type'Output (Stream, Item.all);

However, you see the problem, loading them back is a no-no:

Item : constant Item_Access := new Item_Type'(Item_Type'Input (Stream));

The 'Input attribute is trying to return the object in the stack and so it
doesn't work. My items are around 20 MB in size (now, they could grow
bigger) and I'd like not to have to raise my stack to these sizes (also
making it doable from the environment task would be a plus).

Thanks in advance,

A. Mosteo.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-09-04 13:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-01 17:57 De-serializing and stack sizes Alex R. Mosteo
2006-09-02  8:14 ` Dmitry A. Kazakov
2006-09-04 13:44   ` Alex R. Mosteo
2006-09-02 10:20 ` Simon Wright
2006-09-04 13:45   ` Alex R. Mosteo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox