Error description: Error BASE/1132 Bound error: array access
Args:
[ 1] = A { ... }
[ 2] = N 0
Stack Calls
===========
Called from: source\xbrowse.prg => (b)TXBROWSE(517)
Called from: source\xbrowse.prg => TXBROWSE:COLATPOS(0)
Called from: source\xbrowse.prg => (b)TXBROWSE(519)
Called from: source\xbrowse.prg => TXBROWSE:SELECTEDCOL(0)
Called from: source\xbrowse.prg => TXBROWSE:PAINT(1250)
Called from: source\xbrowse.prg => TXBROWSE:DISPLAY(1228)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1686)
Called from: source\xbrowse.prg => TXBROWSE:HANDLEEVENT(11511)
Called from: .\source\classes\WINDOW.PRG => _FWH(3443)
Called from: => DIALOGBOX(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(277)
I don't believe it will solve the problem , the real problem is that for some reason ::aDisplay is empty.
ukservice wrote:I do get it very often:
It is not a hardware problem.
It happens randomly when painting xBrowse.
- Code: Select all Expand view RUN
Error description: Error BASE/1132 Bound error: array access
Args:
[ 1] = A { ... }
[ 2] = N 0
Stack Calls
===========
Called from: source\xbrowse.prg => (b)TXBROWSE(517)
Called from: source\xbrowse.prg => TXBROWSE:COLATPOS(0)
Called from: source\xbrowse.prg => (b)TXBROWSE(519)
Called from: source\xbrowse.prg => TXBROWSE:SELECTEDCOL(0)
Called from: source\xbrowse.prg => TXBROWSE:PAINT(1250)
Called from: source\xbrowse.prg => TXBROWSE:DISPLAY(1228)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1686)
Called from: source\xbrowse.prg => TXBROWSE:HANDLEEVENT(11511)
Called from: .\source\classes\WINDOW.PRG => _FWH(3443)
Called from: => DIALOGBOX(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(277)
nageswaragunupudi wrote:I don't believe it will solve the problem , the real problem is that for some reason ::aDisplay is empty.
Yes.
This is the real reason.
One case was resolved recently. When HScroll bar is moved in a single column browse, this was happening. This was fixed.
We need to see under what other situations ::aDisplay is becoming empty. Any feedback on this is welcome.
nageswaragunupudi wrote:#1. You should never hide all columns. Atleast one column should be visible.
#2. When there is only one column in the browse, using horizontal scroll bar was resulting in this error. This is fixed in the latest version. For previous versions, the work around was not to have HScroll bar when there is only one column in the browse.
Nages ,
I try to simulate the same error list from mine user. I have no intention to hide all the columns in a browse
Frank
do while nFreeze > 0 .and. nCol <= nLen
oCol := ::aCols[ nCol ]
if ! oCol:lHide
AAdd( aDisplay, nCol )
oCol:nPos := Len( aDisplay )
nFreeze--
endif
nCol++
enddo
do while nCol <= nLen
oCol := ::aCols[ nCol ]
if ! oCol:lHide
AAdd( aDisplay, nCol )
oCol:nPos := Len( aDisplay )
endif
nCol++
enddo
if Len( aDisplay ) == 0
MsgInfo( "aDisplay is zero! and nCol is: " + AllTrim( Str( nCol ) ) + " nLen is: " + AllTrim( Str( nLen ) ) )
endif
::aDisplay := aDisplay
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 65 guests