I have a problem in a POS system where I have an application that prints hundreds of receipts a day, but occasionally this error appears and the program interrupts.
here is the error:
------------------------------------------------------------------------------
Registo de Erro de "D:\User\AbRest\AbRest.exe" Data: 01/06/2022 18:47:57
Xbase++ versao : Xbase++ (R) Version 2.00.1176
Sistema Operativo : Windows 10 1809 Build 17763
------------------------------------------------------------------------------
oError:args :
-> VALTYPE: C VALUE: !
oError:canDefault : N
oError:canRetry : Y
oError:canSubstitute: N
oError:cargo : NIL
oError:description : Access to method not allowed in this context
oError:filename :
oError:genCode : 25
oError:operation : qqOut
oError:osCode : 0
oError:severity : 2
oError:subCode : 4402
oError:subSystem : BASE
oError:thread : 5
oError:tries : 14
------------------------------------------------------------------------------
CALLSTACK:
------------------------------------------------------------------------------
Chamado de TALAO_PEDIDO(373)
Chamado de IMPRIMIR_PEDIDOS_NOVOS(213)
Chamado de PROCESSAR_PEDIDOS(96)
Chamado de TRATA_PEDIDO(244)
Chamado de RECEBE_PEDIDO(65)
Chamado de ACTUALIZA_HORA_REST(45)
Chamado de (B)WTPOS(1403)
The Line 373 have this CODE :
Code: Select all
//---------------------------------------------------------------------------------
Function TALAO_PEDIDO( xPorta, xTipo, xSalto, aPedidos, nPrinter, xAnula, BDRate, cNomeOperador, cNomeSeccao, cNomeMesa )
//---------------------------------------------------------------------------------
Local oTalaoPrinter
set console off
set device to printer
set printer on
oTalaoPrinter := XbpPrinter():New():Create( Alltrim(Porta_Printer_Win),, )
Set printer to OBJECT oTalaoPrinter
? Chr(27)+chr(33)+chr(24) //<<<<<<<<<-------------- Line 373
But unexpectedly 1 or 2 times a day this error occurs.
Does anyone have this kind of problem?