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=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.DFxaDADwSkn+6wW9Ah21PA.user.gioia.aioe.org!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: How to convert a certain value to text Date: Mon, 06 Apr 2020 13:59:53 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <5e8adbd9$0$18429$e4fe514c@news.kpn.nl> NNTP-Posting-Host: DFxaDADwSkn+6wW9Ah21PA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:Mvw7QgFYGZRjQh7uOVxYRcZIf5w= Xref: reader01.eternal-september.org comp.lang.ada:58318 Date: 2020-04-06T13:59:53+01:00 List-Id: ldries46 writes: > I am testing a program that makes the following Error: > raised CONSTRAINT_ERROR : glade_convert.adb:286 access check failed > That happens on the line > Get_Iter_At_Mark(Buffer, Iter_With, with_mark); > When running the program in debug mode the program never reaches this > line and seems to be in a loop somewhere. That means that I do want to > try and print some values in run modeThat must be the values of > f.i. with_mark but while compiling I get image attribute cannot be > used for a no scalar. > How can I still print it. You write your own function Image to convert the type to string (you may have to take extra measures if that type is private, e.g. makint that function a child of the package in which the type is declared). Or, you could learn to use the debugger?