Mail Archives: djgpp/1997/12/01/08:19:13
Andrew Deren <aderen AT eecs DOT uic DOT edu> wrote:
> I have a relatively large C++ program and it works fine when using Windows
> 95 DPMI host but when using pure DOS, it crashes. I tried using debuger in
> RHIDE but the program crashes even before reaching to the main function.
> And the error is in text_length function which is a part of allegro.
> Does anyone know how to find where that error occurs. When I try using
> stepping in debugger, the first time I use step I get the SIGSEG error.
Obviously one of your constructors have a fault. Isolate the one that calls
text_length and have the fault, then use fprintf to stderr to look the
parameters. Another thing: does text_legth work before initializing Allegro? (I
guess it does, but take a look to the code). I think you are passing a NULL
pointer as string to meassure the length and that because W95 overlooks it.
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -