From: "Darren" <sebastian.madunic@avionics.saab.se>
Subject: "Xx'Address" problem
Date: Mon, 2 Sep 2002 08:27:08 +0200
Date: 2002-09-02T08:27:08+02:00 [thread overview]
Message-ID: <akv00m$mtn$1@newstoo.ericsson.se> (raw)
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
next reply other threads:[~2002-09-02 6:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-02 6:27 Darren [this message]
2002-09-03 14:05 ` "Xx'Address" problem Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox