comp.lang.ada
 help / color / mirror / Atom feed
* STORAGE_ERROR Exception
@ 1997-04-06  0:00 Matthew Givens
  1997-04-07  0:00 ` John Apa
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Givens @ 1997-04-06  0:00 UTC (permalink / raw)



Okay, I have a problem working with Ada under SunOS.

I'm retrieving rows of data from a database, formatting a string of data 
suitable for display, storing the string in one giant string of rows 
(separated by LF's), and displaying the rows 50 at a time in the listbox 
after all rows have been retrieved.

The problem come in when handing large sets of data.  The program dies 
with a STORAGE_ERROR on the record #1600, every time.  It's dying as I 
try to allocate the new row.  Now, all I can think of is that I'm 
mismanaging memory somewhere, but I can't find it.

Is there a way to determine how much memory is available for allocation?  
I could do it easily in DOS or MS-Windows, but don't know how to do it 
here.  Having this would make tracking down the errors just a tad easier.


And, if anyone has any other thoughts as to why this is happening, please 
don't hesitate to offer them.

Thanks in advance.

-
"Outside of a dog, a book is a Man's best friend.  Inside of a dog it's 
very dark." << Iceman >>





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

* Re: STORAGE_ERROR Exception
  1997-04-06  0:00 STORAGE_ERROR Exception Matthew Givens
@ 1997-04-07  0:00 ` John Apa
  0 siblings, 0 replies; 2+ messages in thread
From: John Apa @ 1997-04-07  0:00 UTC (permalink / raw)



Matthew Givens wrote:
> 
> Okay, I have a problem working with Ada under SunOS.
> 
{snip}

> The problem come in when handing large sets of data.  The program dies
> with a STORAGE_ERROR on the record #1600, every time.  It's dying as I
> try to allocate the new row.  Now, all I can think of is that I'm
> mismanaging memory somewhere, but I can't find it.

I believe there is a limitation in sunada on the maximum data structure
size. I think it's around 8 megabytes. I ran into this problem a few
years ago using sunada. Check the manual that came with it for these
constraints. Appendix F I think. I was able to work around it without to
much trouble. Good luck.

> 
{snip}
> -
> "Outside of a dog, a book is a Man's best friend.  Inside of a dog it's
> very dark." << Iceman >>

-- 
***********************************
Standard Disclaimers Apply
John Thomas Apa
Replace "DIE_SPAMMER" with "delphi" to email.
Honeywell Defense Avionics Systems
Albuquerque, New Mexico.
***********************************




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

end of thread, other threads:[~1997-04-07  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-04-06  0:00 STORAGE_ERROR Exception Matthew Givens
1997-04-07  0:00 ` John Apa

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