is this ex.err bug?

new topic     » topic index » view thread      » older message » newer message

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.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu