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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC,XPRIO autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,af9abb675f2f5bcc,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-01 23:28:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!news.algonet.se!newsfeed1.telenordia.se!algonet!uab.ericsson.se!erix.ericsson.se!newstoo.ericsson.se!not-for-mail From: "Darren" Newsgroups: comp.lang.ada Subject: "Xx'Address" problem Date: Mon, 2 Sep 2002 08:27:08 +0200 Organization: ericsson Message-ID: Reply-To: "Darren" NNTP-Posting-Host: 172.17.82.166 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Xref: archiver1.google.com comp.lang.ada:28647 Date: 2002-09-02T08:27:08+02:00 List-Id: Hi, I have some problems using the 'Address on some objects. My code looks like this. In a file I have two objects declared: Memory : Memory_Type; -- Just an Array of Unsigned_16, (index Unsigned_16) Special_Mem : Special_Memory_Type -- A record type consisting of several Array types, (index Unsigned_16) Later in my code in a procedure I try to use the same Address for Special_Memory as for Memory using the 'Address. This is what happens: procedure X is begin Get_Offset(Offset ); declare Local_Copy_Mem : Memory_Type; 1) for Local_Copy_Memory'Address use Memory'Address; -- Works fine 2) for Local_Copy_Memory'Address use Special_Memory'Address; -- Works fine 3) for Local_Copy_Memory'Address use Special_Memory.Array_1(Offset)'Address; -- Doesn't work at all... begin end; --declare end X; Number 3 doesn't work, it compiles but when I debug it it seems like the program gets stuck at that row. What could possibly be wrong? Any suggestions are appreciated. /S