If you close a window during processing, errors can occur at run time. The Xailer should not avoid receiving clicks?
The close method will destroy the helper objects (items), and the processing has not been completed. Simple example:
Código: Seleccionar todo
METHOD Timer1Timer( oSender ) CLASS TForm1
local nPos
::oTimer1:Disable()
Application:lBusy:=.t. // and CursorWait - does not work, disable the window, temporary solution
::oStatusBar1:aItems[5]:cText:='Processing .... close the window now, crash'
for nPos:=1 to 4
::oStatusBar1:aItems[nPos]:cText:=Str(nPos) // line 41 / Error
ProcessMessages()
Sleep(1000)
ProcessMessages()
Sleep(1000)
next
AEval(::oStatusBar1:aItems, {|o|o:cText:=''})
Application:lBusy:=.f.
::oTimer1:Enable()
RETURN Nil
Resume:
- Versão do Xailer: Xailer 4.0.2
Compilador: Harbour 3.2.0dev (r1503071916)
Compilador C/C++ : MinGW GNU C 4.9.2 (32-bit)
Chamada Subsistema: BASE
Código Sistema: 1132
Status por Defeito: .F.
Descrição: Bound error
Operação: array access
Argumentos: [ 1] = Tipo: A Val: [ 2] = Tipo: N Val: 2
Ficheiros envolvidos:
Dos Error Code: 0
Trace Through:
TFORM1:TIMER1TIMER (41)
TTIMER:ONTIMER (0)
(b)XTIMER (43)
TTIMER:WMTIMER (0)
RUNFORM (0)
TAPPLICATION:RUN (287)
MAIN (15)