is this ex.err bug?
- Posted by Tone Škoda <tskoda at email.si> Jan 31, 2005
- 459 views
among other things this is in ex.err: rowIndex = 3 winIndex = 2 rowIndex = 3 winIndex = 2 rowIndex = 2 winIndex = 2 They are duplicated, what value rowIndex had at crash, 2 or 3? This is the code which crashed and produced this ex.err: rowTopY = 0 for rowIndex = 1 to length (allRows) do windows = row [ROW_WINDOWS] winsData = row [ROW_WINSDATA] rowWinsPlac = allWinsPlac [rowIndex] for winIndex = 1 to length (windows) do winData = winsData [winIndex] if winData [RS_VALIGN] = RS_TOP then y = rowTopY + winData [RS_TOPSPACE] elsif winData [RS_VALIGN] = RS_CENTER then y = rowTopY - floor (rowsHeights [rowIndex] / 2) elsif winData [RS_VALIGN] = RS_BOTTOM then y = rowTopY + rowsHeights [rowIndex] - winData [RS_BOTTOMSPACE] - rowWinsPlac [winIndex] [WP_HEIGHT] end if -- THIS LINE BELOW CRASHED rowWinsPlac [winIndex] [WP_TOP] = y end for allWinsPlac [rowIndex] = rowWinsPlac rowTopY += rowsHeights [rowIndex] end for I thinks it has got to do something with the fact that I have in same procedure above this loop two similar loops, both those loops have this: for rowIndex = 1 to length (allRows) do .... for winIndex = 1 to length (windows) do .... Or is this expected behavior? it's a little confusing.