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: 103376,7f18265ce67560b3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.73.233 with SMTP id o9mr772953pbv.8.1320768695374; Tue, 08 Nov 2011 08:11:35 -0800 (PST) Path: h5ni13099pba.0!nntp.google.com!news2.google.com!postnews.google.com!l19g2000yqc.googlegroups.com!not-for-mail From: awdorrin Newsgroups: comp.lang.ada Subject: Re: Memory Access Date: Tue, 8 Nov 2011 08:10:01 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <49f9578c-6f67-4af0-93b0-63120bfe23df@x28g2000prb.googlegroups.com> <35c7e403-6503-4e26-8764-9783caf84871@e2g2000vbb.googlegroups.com> NNTP-Posting-Host: 192.31.106.35 Mime-Version: 1.0 X-Trace: posting.google.com 1320768695 2328 127.0.0.1 (8 Nov 2011 16:11:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 8 Nov 2011 16:11:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l19g2000yqc.googlegroups.com; posting-host=192.31.106.35; posting-account=YkFdLgoAAADpWnfCBA6ZXMWTz2zHNd0j User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESRCNK X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1,gzip(gfe) Xref: news2.google.com comp.lang.ada:14349 Content-Type: text/plain; charset=ISO-8859-1 Date: 2011-11-08T08:10:01-08:00 List-Id: I think I have myself rather confused at the moment with all of this... Reviewing the code more - I now have a different understanding of what Dev_Table is meant to be. I think that Dev_Table is supposed to be an array of Dev_Table_Ptr_Type (an array of pointer addresses) that point to the Dev_Table_Type array of Config_Type records. Stepping through the code with GDB has shed some light, although not a solution to my problem, quite yet. The problem I'm running into is a SegFault when the code tries to assign a value read from the data file. Dev_Table(Dev_Num).Dev_Name := Current_Dev_Name; GDB cannot resolve what Dev_Table(Dev_Num) is - I'm thinking because it and Ada isn't seeing Dev_Table as an array of pointers. Showing my ignorance/lack of familiarity with the Ada language here I think... :)