Mail Archives: djgpp/1998/08/09/20:30:23
From: | lukey AT crazy DOT inka DOT de (Jens Hassler)
|
Subject: | Allegro -> SIGSEGV error
|
Date: | Mon, 10 Aug 98 00:47:00 CET
|
Message-ID: | <6zbSgq51qNB@lukey.crazy.inka.de>
|
Newsgroups: | comp.os.msdos.djgpp
|
Lines: | 32
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hallo!
I'm having problems with running a program using Allegro under DOS/
CWSDPMI. There are no problems under Win95.
Well, first I got error 0006. I looked it up in the FAQ, but the described
crt0-thing didn't work (same error).
Symify told me that the error is in the 'set_clip' function
(_set_clip+141). It turned out to be the "init_dialog"-procedure in my
program code (one of the Allegro-GUI-routines).
Then I looked up the 'set_clip' in the 'init_dialog'-procedure (sourcefile
gui.c), threw the "set_clip(screen,0,0,SCREEN_W-1,SCREEN_H-1)" line out
and recompiled Allegro.
And now the problem is even bigger (maybe ;). Now I get error 0004 with
the following Symify-output:
_button_proc+35, line 205 of padd.c
_init_dialog+237
padd.c is my sourcefile. Line 205 is "d->dp = layout[k].dat;" (d->dp is a
void pointer of the dialog routine [points to a bitmap for a d_icon_proc-
Button-Procedure]).
I don't know what's wrong with the code, so I hope that anybody here is
able to help me getting this thing work under pure DOS ;-)
Bye,
Jens
- Raw text -