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-7-bit X-Google-Thread: 103376,653b8373495f46de,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-18 03:14:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.vmunix.org!blackbush.xlink.net!blackbush.de.kpnqwest.net!news.erfurt.thur.de!drcomp.erfurt.thur.de!not-for-mail From: Adrian Knoth Newsgroups: comp.lang.ada Subject: Who's fault is it? Date: 18 Jun 2002 09:38:03 GMT Organization: Modern Electronics Message-ID: NNTP-Posting-Host: drcomp.erfurt.thur.de X-Server-Date: 18 Jun 2002 09:38:03 GMT User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:26222 Date: 2002-06-18T09:38:03+00:00 List-Id: Hi, I have an array of Unbounded_Strings. The content is filled via the PG2- binding for PostgreSQL. Afterwards I convert this retrieved buffer via GtkAda-2.0's Glib.Convert.Locale_To_UTF8 to another Unbounded.String which is the INSERT-Query (SQL). I'm doing this within a for-loop for every row from the DB-table. It is working fine for the first three rows, afterwards it breakes with Interfaces.C.Strings.Dereference_Error (raised in function Strlen). It _always_ breaks in the 4th row, no matter which content is there. Can someone imagine why? Does someone else have this problem? Sample-code is available at http://adi.thur.de/problemcode.tar.gz, if necessary. -- mail: adi@thur.de http://adi.thur.de PGP: v2-key via keyserver Alle Menschen sind klug. Die einen vorher, die anderen nachher.