RE: [Xbae-discuss] xbaeAdjustTopRow
Brought to you by:
dannybackx
From: Potts, J. <joe...@lm...> - 2002-10-16 20:57:21
|
Danny, I have verified that the situation does exist with 4.9.13 also. It sounds as if Sascha Goebel, who replied to me separately, is also aware of the situation. I would guess that she has a much more reasonable sample to generate the problem. My example is part of a large, poorly constructed (don't ask) piece of software. Thanks again for your attention on this. Regards, Joe Potts -----Original Message----- From: Danny Backx [mailto:dan...@sk...] Sent: Tuesday, October 15, 2002 5:54 PM To: Potts, Joe Cc: 'xba...@li...' Subject: Re: [Xbae-discuss] xbaeAdjustTopRow Joe, Thanks for reporting this. There are several parts to the answer. We've changed a lot since 4.9.5, and the top_row field is part of what's changed. Therefore, could you test whether this also happens with 4.9.13 ? If it does, could you provide us with a stack trace and possibly information that we can use to reproduce ? Thanks, Danny > "Potts, Joe" wrote: > > Hello, my name is Joe Potts and I work at Lockheed Martin's Air > Traffic Management Division. While using the Matrix (version 4.9.5), > we are receiving a divide by zero exception in the first line of the > routine xbaeAdjustTopRow. The first line is: > > int rows_visible = VISIBLE_HEIGHT(mw) / SOME_ROW_HEIGHT(mw, > mw->matrix.top_row); > > Drilling down the SOME_ROW_HEIGHT macro leaves you with this > statement: > > mw->matrix.row_heights[mw->matrix.top_row] > > The problem occurs because mw->matrix.top_row evaluates to -1, and the > entire denominator evaluates to 0. Uh-oh... > > My question is what the value of -1 for the top_row variable means? > Is it a default for something? I do not see it as something we are > setting explicitly. What are the circumstances of the top_row > variable being set to -1? -- Danny Backx (da...@gn... dan...@sk...) Home page : http://users.skynet.be/danny.backx Projects: LessTif (http://lesstif.sourceforge.net) Xbae (http://xbae.sourceforge.net) |