From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d9241cc896c5fa1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-13 16:29:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!ppp-1-219.5800-14.telinco.NET!not-for-mail From: nickroberts@ukf.net (Nick Roberts) Newsgroups: comp.lang.ada Subject: Re: To_Unbounded_String and PROGRAM_ERROR Date: Thu, 14 Feb 2002 00:32:20 GMT Message-ID: <3c6b0244.8555881@news.cis.dfn.de> References: <4519e058.0202010811.5ff04e10@posting.google.com> NNTP-Posting-Host: ppp-1-219.5800-14.telinco.net (212.1.148.219) X-Trace: fu-berlin.de 1013646578 49092277 212.1.148.219 (16 [25716]) X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:19986 Date: 2002-02-14T00:32:20+00:00 List-Id: On Mon, 11 Feb 2002 10:53:42 +0100, Michal Nowikowski strongly typed: >On Fri, 01 Feb 2002 17:11:02 +0100, Ted Dennison wrote: > >> Also, does this code happen to be in a task? Some compilers keep >> separate heaps for each task, typically with a much smaller default size >> than the main task gets. > >Now I see that it is problem with allocating memory.Can I expand >available memory or can I check how much free memory left. How can >I manage with limitation of dynamic allocation??? I can give a little general advice. See if you can change the program so that it uses less memory (but still does its job properly). This is most likely to be the solution to your problem. Is your program running out of heap space (things allocated by 'new') or stack space (everything else)? It might help to use less of one and more of another. How much RAM does your machine have? Check it is realistically enough. Does your system provide virtual memory? Maybe it would help to enable this, or to increase the amount. -- Nick Roberts