comp.lang.ada
 help / color / mirror / Atom feed
* Linux-Svgalib Signal 11 error
@ 1998-06-12  0:00 Jaume Obrador
  0 siblings, 0 replies; only message in thread
From: Jaume Obrador @ 1998-06-12  0:00 UTC (permalink / 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





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

only message in thread, other threads:[~1998-06-12  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-12  0:00 Linux-Svgalib Signal 11 error Jaume Obrador

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