- Code: Select all Expand view
Buena tarde...
Continuo solicitando ayuda para detectar este error ...
es esporádico (no lo he podido replicar, se presenta con algunos clientes que tienen mucho movimiento ), y siempre es en la misma línea
Application
===========
Path and name: Z:\ZERUS\zeruswin.exe (32 bits)
Size: ********* bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20141202)
FiveWin Version: FWHX 15.01
Windows version: 6.1, Build 7600
Time from start: 0 hours 24 mins 56 secs
Error occurred at: 05/11/2016, 12:10:17
Error description: Error DBCMD/2001 Workarea not in use: DBGOTO
Stack Calls
===========
Called from: => DBGOTO( 0 )
Called from: source\classes\xbrowse.prg => (b)TXBROWSE:SETRDD( 4168 )
Called from: source\classes\xbrowse.prg => (b)TXBROWSE:TXBROWSE( 445 )
Called from: => TXBROWSE:_BOOKMARK( 0 )
Called from: source\classes\xbrowse.prg => TXBROWSE:PAINT( 1630 )
Called from: source\classes\xbrowse.prg => TXBROWSE:DISPLAY( 1376 )
Called from: Source\Classes\control.prg => TCONTROL:HANDLEEVENT( 1699 )
Called from: source\classes\xbrowse.prg => TXBROWSE:HANDLEEVENT( 12711 )
Called from: Source\Classes\window.prg => _FWH( 3450 )
Called from: => SYSREFRESH( 0 )
Called from: Source\Classes\dialog.prg => TDIALOG:END( 526 )
Called from: Source\Classes\outl2003.prg => TOUTLOOK2003:DESTROY( 324 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: Source\Classes\control.prg => TCONTROL:HANDLEEVENT( 1733 )
Called from: Source\Classes\outl2003.prg => TOUTLOOK2003:HANDLEEVENT( 345 )
Called from: Source\Classes\window.prg => _FWH( 3450 )
Called from: => WINRUN( 0 )
Called from: Source\Classes\window.prg => TWINDOW:ACTIVATE( 1152 )
Called from: C:\Desarro\ZerusGes\VersionActual\FUENTES\COMUNES\FW_FUNCSST3.PRG => PRINCIPAL_METRO( 5019 )
// class xbrowse ... modificada
METHOD SetRDD( lAddColumns, lAutoOrder, aFldNames, aRows ) CLASS TXBrowse
local oCol, aStruct
local cAlias, cAdsKeyNo, cAdsKeyCount
local nFields, nFor, n, uData
local bOnSkip
local cAliPru := ""
if Empty( ::cAlias )
::cAlias := Alias()
if Empty( ::cAlias )
return nil
endif
endif
IF SELECT(::cAlias) == 0
RETURN NIL
ENDIF
SELECT(::cAlias)
if ::lCreated
if ::nDataType == DATATYPE_RDD
if SameDbfStruct( Self, Alias() )
return nil
endif
endif
::cAlias := Alias()
::ClearBlocks()
::aCols := {}
endif
//TRY
DEFAULT lAddColumns := Empty( ::aCols ) .or. ! Empty( aFldNames )
DEFAULT lAutoOrder := ::lAutoSort
::lAutoSort := lAutoOrder
cAlias := ::cAlias
if ValType( aRows ) == 'A' .and. Len( aRows ) > 0
if ValType( aRows[ 1 ] ) == 'A'
bOnSkip := { | oBrw | ( oBrw:cAlias )->( DbGoTo( oBrw:aArrayData[ oBrw:nArrayAt ][ 1 ] ) ) }
else
bOnSkip := { | oBrw | ( oBrw:cAlias )->( DbGoTo( oBrw:aArrayData[ oBrw:nArrayAt ] ) ) }
endif
::SetArray( aRows, .f., 0, .f., bOnSkip )
::nDataType := nOr( DATATYPE_RDD, DATATYPE_ARRAY )
lAutoOrder := .f.
else
::nDataType := DATATYPE_RDD
endif
::lSqlRDD := ( ( ::cAlias )->( RddName() ) == "SQLRDD" )
if ::lSqlRDD
DEFAULT ::bKeyNo := { |n| 0 }
endif
IF SELECT(::cAlias) == 0 // JRT // si se reporta en el default: "que el area esta cerrada - Error description: Error DBCMD/2001 Workarea not in use: DBGOTO ", porque no marca el error aquí ??
//BREAK
return
ENDIF
cAliPru := ::cAlias // prueba para capturar error
SELECT(::cAlias) // si se reporta en el default: "que el area esta cerrada", porque no marca el error aquí ??
DEFAULT ::bGoTop := {|| ( ::cAlias )->( DbGoTop() ) },;
::bGoBottom := {|| ( ::cAlias )->( DbGoBottom() ) },;
::bSkip := {| n | ( ::cAlias )->( DbSkipper( IfNil( n, 1 ) ) ) },;
::bBof := {|| ( ::cAlias )->( Bof() ) },;
::bEof := {|| ( ::cAlias )->( Eof() ) },;
::bBookMark := {| n | iif( n == nil .or. n == 0 ,;
( ::cAlias )->( RecNo() ) ,;
( ::cAlias )->( DbGoto( n ) ) ) } // línea 4168, donde se reporta el error
Gracias
Johnson Russi
Colombia