From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: non-local pointer cannot point to local object
Date: Fri, 23 Feb 2018 10:42:44 +0100
Date: 2018-02-23T10:42:44+01:00 [thread overview]
Message-ID: <p6onmk$1c34$1@gioia.aioe.org> (raw)
In-Reply-To: 15e8a72b-3644-4193-8947-b0aaf587c1c2@googlegroups.com
On 23/02/2018 09:54, artium@nihamkin.com wrote:
> Can someone explain why I get "non-local pointer cannot point to
> local object" error, even though it looks like "Arr" and "Arr_Access"
> have the same accessibility level?
In the equation are the type of pointer and the target object, not two
objects.
> Can I overcome the problem without dynamically allocating memory and without using "Unchecked_Access"?
You probably don't need char_array_access. char_array is meant to be
used where C expects char *. Just pass To_C ("from") right to C.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2018-02-23 9:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-23 8:54 non-local pointer cannot point to local object artium
2018-02-23 9:22 ` J-P. Rosen
2018-02-24 8:13 ` gautier_niouzes
2018-02-23 9:42 ` Dmitry A. Kazakov [this message]
2018-02-23 12:19 ` AdaMagica
2018-02-23 16:56 ` Mehdi Saada
2018-02-23 17:16 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox