comp.lang.ada
 help / color / mirror / Atom feed
From: "Jaume Obrador" <jobrador@ipc4.uib.es>
Subject: Linux-Svgalib Signal 11 error
Date: 1998/06/12
Date: 1998-06-12T00:00:00+00:00	[thread overview]
Message-ID: <01bd960e$a6d000c0$f7c97ac3@default> (raw)


I get "Signal 11 Segmentation fault error" using a binding to the gl_write
function from svgalib in Linux.

Please HELP.

void gl_write(int x, int y, char *s)

The binding I've made.

procedure draw_text(x,y: integer; s: in string);

procedure draw_text(x,y: integer; s: in string) is
	procedure c_draw_text(x,y: in integer; s: in chars_ptr);
	pragma import (c, c_draw_text, "gl_write");
	new_array: chars_ptr;
begin
	new_array:=new_string(s);
	c_draw_text(x,y,new_array);
	free(new_array);
end draw_text;

Jaume Obrador





                 reply	other threads:[~1998-06-12  0:00 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