with buttons and one xbrowse as you can see here
when I press the bordeaux button ( on bottom at left ) I can esc from this dialog
If I made this for ten /twenty time it not crash
When I click on X and then I click on the bordeau button the dialog crash making this error
- Code: Select all Expand view
- Application
===========
Path and name: C:\Work\Prg\Comanda\Com@nda.Exe (32 bits)
Size: 7,016,960 bytes
Compiler version: Harbour 3.2.0dev (r1406271520)
FiveWin version: FWH 17.02
C compiler version: Borland C++ 5.8.2 (32-bit)
Windows version: 6.1, Build 7600
Time from start: 0 hours 1 mins 10 secs
Error occurred at: 29-05-2017, 13:14:29
Error description: Error DBCMD/2001 Workarea non in use: __DBSKIPPER
Stack Calls
===========
Called from: => __DBSKIPPER( 0 )
Called from: .\source\classes\XBROWSE.PRG => (b)TXBROWSE_SETRDD( 4955 )
Called from: .\source\classes\XBROWSE.PRG => (b)TXBROWSE( 494 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:SKIP( 0 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:PAINT( 1922 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:DISPLAY( 1724 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1697 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:HANDLEEVENT( 14414 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3325 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 296 )
Called from: source\PCassa.prg => CAPTURADEPRODUCTOS( 626 )
Called from: source\PCassa.prg => CASSA( 52 )
Called from: source\main.prg => (b)TAPPLICATION_BUILDBTNBAR( 741 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK( 665 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP( 901 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1721 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT( 1843 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3325 )
Called from: => WINRUN( 0 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1036 )
Called from: source\main.prg => TAPPLICATION:ACTIVATE( 419 )
Called from: source\main.prg => MAIN( 61 )
the prg
STATIC FUNCTION cassa( aDatosMesa )
LOCAL lSalida :=.f.
DEFINE DIALOG oDlgMesas ;
TITLE cTitle ;
SIZE nWidth, nHeight
....
@ 325,5 SBUTTON aBtnsConsu[3] OF oDlgMesas SIZE 48, 30 PIXEL ;
COLORS CLR_WHITE, RGB(162, 0, 37), CLR_WHITE;
PROMPT "ESCI" CRYSTAL NOBOX ACTION ( lSalida:= TRUE, oDlgMesas:End() ) FONT oFntConsum
....
@ 20,300 XBROWSE oBrwConsu SIZE 185,165 PIXEL OF oDlgMesas ;
DATASOURCE "CO" ;
COLUMNS "Cantidad", "Desc", "Precio", "Importe" ;
HEADERS "Qta", "Descrizione", "Prezzo", "Importo" ;
COLSIZES 30, 170, 60, 60 ;
PICTURES "999,999", nil, "999.99", "999.99" ;
NOBORDER ;
FONT oFntBrow STYLE 2015
....
ACTIVATE DIALOG oDlgMesas ;
ON INIT ( SetTotals(cScoNumDoc), oBrwConsu:SetFocus() ) ;
ON PAINT ( aRct := GetClientRect( oDlgMesas:hWnd ), ;
GradColor(oDlgMesas:hDC, aRct, CLR_WHITE, LightColor(100, RGB( 216, 230, 246 )) ));
CENTERED VALID (DestroyBtns( aBtnScroll ), ;
DestroyBtns( aBtnsProdu ), ;
nPageLines:= 0, ;
nElemenLines:= 12,;
CO->( ORDSCOPE( 0, NIL ) ), ;
CO->( ORDSCOPE( 1, NIL ) ),;
DbCloseAll(),;
oDlgMesas := NIL,;
oBrwConsu := NIL, lSalida )
RETURN NIL