comp.lang.ada
 help / color / mirror / Atom feed
From: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Subject: Who's fault is it?
Date: 18 Jun 2002 09:38:03 GMT
Date: 2002-06-18T09:38:03+00:00	[thread overview]
Message-ID: <slrnagtvrq.s6j.adi@drcomp.erfurt.thur.de> (raw)

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.



                 reply	other threads:[~2002-06-18  9:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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