delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/01/08:19:13

Message-Id: <m0xcQ5s-000S23C@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT edu DOT ar>
Organization: INTI
To: Andrew Deren <aderen AT eecs DOT uic DOT edu>, djgpp AT delorie DOT com
Date: Mon, 1 Dec 1997 10:24:01 +0000
MIME-Version: 1.0
Subject: Re: Debuging
In-reply-to: <Pine.SUN.3.95.971130223745.22811C-100000@ernie.eecs.uic.edu>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019