comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Access to function causes "access check failed"
Date: Tue, 27 Dec 2011 17:29:39 -0500
Date: 2011-12-27T17:29:39-05:00	[thread overview]
Message-ID: <wcclipxfy24.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 32495535.655.1325020811299.JavaMail.geo-discussion-forums@vbls16

Alex <alexandre.konieczny@gmail.com> writes:

> The My_T : T1 declaration in t.adb caused the check failed error on
> line of "type T1 is record". I wonder why I have such an error, if
> it's normal or not. Any ideas ?

Access values are default-initialized to null, and you declared the
thing "not null", so it raises C_E when initialized.

Try a subtype predicate (Ada 2012 feature); they're better behaved in
this regard.

- Bob




       reply	other threads:[~2011-12-27 22:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <32495535.655.1325020811299.JavaMail.geo-discussion-forums@vbls16>
2011-12-27 22:29 ` Robert A Duff [this message]
2011-12-27 22:42 ` Access to function causes "access check failed" Niklas Holsti
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox