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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,de85c452b42b049 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.143.143 with SMTP id v15mr305616bku.8.1333639348786; Thu, 05 Apr 2012 08:22:28 -0700 (PDT) Path: h15ni89221bkw.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: tonyg Newsgroups: comp.lang.ada Subject: Re: Tasking, AWS and segmentation faults Date: Thu, 5 Apr 2012 08:20:08 -0700 (PDT) Organization: http://groups.google.com Message-ID: <30430138.605.1333639208754.JavaMail.geo-discussion-forums@vbbbg2> 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> <4f7d7c1b$0$7620$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: 195.58.145.51 Mime-Version: 1.0 X-Trace: posting.google.com 1333639289 21361 127.0.0.1 (5 Apr 2012 15:21:29 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 5 Apr 2012 15:21:29 +0000 (UTC) In-Reply-To: <4f7d7c1b$0$7620$9b4e6d93@newsspool1.arcor-online.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=195.58.145.51; posting-account=28F2IwkAAACL1Z5nRC-dE7zuvWdbWC7P User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-04-05T08:20:08-07:00 List-Id: On Thursday, 5 April 2012 12:03:55 UTC+1, Georg Bauhaus wrote: > 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. ooh ooh I forgot to dereference it! jeepers. Thanks for that you have just extended the life of my webserver beyond a fwe requests!