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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,de85c452b42b049 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.202.168 with SMTP id kj8mr2701003pbc.1.1333623836771; Thu, 05 Apr 2012 04:03:56 -0700 (PDT) Path: r9ni21115pbh.0!nntp.google.com!news2.google.com!goblin1!goblin.stu.neva.ru!news.astraweb.com!border2.a.newsrouter.astraweb.com!multikabel.net!newsfeed10.multikabel.net!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Thu, 05 Apr 2012 13:03:55 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Tasking, AWS and segmentation faults References: <12873826.360.1333555697441.JavaMail.geo-discussion-forums@vbhc14> <4f7caeb8$0$6640$9b4e6d93@newsspool2.arcor-online.net> <11022851.605.1333622309882.JavaMail.geo-discussion-forums@vbug19> In-Reply-To: <11022851.605.1333622309882.JavaMail.geo-discussion-forums@vbug19> Message-ID: <4f7d7c1b$0$7620$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 05 Apr 2012 13:03:55 CEST NNTP-Posting-Host: a4e7ce21.newsspool1.arcor-online.net X-Trace: DXC=G_X8bAe=Q6dFXUDVUnEXQmic==]BZ:afn4Fo<]lROoRa<`=YMgDjhgbdMS0GUMGbMgnc\616M64>jLh>_cHTX3jm:R3<6XPc5Zg X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2012-04-05T13:03:55+02:00 List-Id: On 05.04.12 12:38, tonyg wrote: > Thanks for your help guys its working lovely now and I know something new! > > What I did was (after reading the advice here) was I used a pointer and declared a 'new type' and then passed that pointer around. For the sake of completeness, and without knowing what you are actually doing, so I could be quite wrong, you can still pass Pointer.all around (or rename this and pass it around as before). Large arrays are typically passed around by reference. Dereferencing keeps the impact of using pointers local, and easy to change again, just in case.