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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!x25g2000prf.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: Trouble writing Ada callback from C Date: Wed, 16 Sep 2009 16:06:33 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <2db6b2d3-88c6-43ae-b1e8-4bcb44ce2ee3@s21g2000prm.googlegroups.com> NNTP-Posting-Host: 75.172.194.61 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1253142393 12191 127.0.0.1 (16 Sep 2009 23:06:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 16 Sep 2009 23:06:33 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x25g2000prf.googlegroups.com; posting-host=75.172.194.61; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/528.16+(KHTML, like Gecko, Safari/528.16) OmniWeb/v622.8.0,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8354 Date: 2009-09-16T16:06:33-07:00 List-Id: On Sep 11, 10:46=A0pm, sjw wrote: > On Sep 12, 6:28=A0am, Jerry wrote: > > > On Sep 11, 1:24=A0am, Ludovic Brenta wrote= : > > > begin > > > =A0 =A0Update (Item =3D> label, Offset =3D> 0, Str =3D> To_C (Result)= , Check =3D> > > > False); > > =A0 =A0 =A0 if Check and then Offset + Chars'Length =A0> Strlen (Item) = then > > =A0 =A0 =A0 =A0 =A0raise Update_Error; > > =A0 =A0 =A0 end if; > > Are you sure you called Update with Check =3D> False? I called it with Check =3D> True. However, when I tried it with Check =3D> False, I got the same error message. Interesting, Norman Cohen's book says I should get a different error message with Check =3D> False. I didn't check ARM about the message, however. Jerry