Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Andrew Deren , djgpp AT delorie DOT com Date: Mon, 1 Dec 1997 10:24:01 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Debuging In-reply-to: Precedence: bulk Andrew Deren 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