comp.lang.ada
 help / color / mirror / Atom feed
* Who's fault is it?
@ 2002-06-18  9:38 Adrian Knoth
  0 siblings, 0 replies; only message in thread
From: Adrian Knoth @ 2002-06-18  9:38 UTC (permalink / 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.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-06-18  9:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-18  9:38 Who's fault is it? Adrian Knoth

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