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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,11d70610d4cc79b7 X-Google-Attributes: gid103376,public From: Keith Thompson Subject: Re: storage size pragmas Date: 2000/05/07 Message-ID: #1/1 X-Deja-AN: 620362482 Sender: kst@king.cts.com References: <20000507094954.10742.00001811@ng-bj1.aol.com> X-Trace: thoth.cts.com 957725748 72899 205.163.0.22 (7 May 2000 18:55:48 GMT) Organization: CTS Network Services Newsgroups: comp.lang.ada X-Complaints-To: newsmaster@cts.com Date: 2000-05-07T00:00:00+00:00 List-Id: anthonygair@aol.comremoveme (ANTHONY GAIR) writes: > For those of you watching my progress with Ada tasks and segmentation faults > with both bated breath and intrepidation for the next exciting installment. > > Would a large array stored inside a task cause a segmentation fault if no > storage size pragma is used ? > > the storage size is roughly 10000 * (8 + 8+ 8+ 8+8) array, If the large array can't be allocated, it *should* cause a Storage_Error exception (if you're compiling with all checks on). The exception may not be visible if it occurs within a task. Add a Storage_Size pragma and see what happens. -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> Welcome to the last year of the 20th century.