Page 1 of 1
Error DC_PRINTER:INIT
Posted: Wed Feb 01, 2017 6:07 am
by c-tec
Hello Roger,
I get the attached error message from a customer, but no idea whats going wrong. I am also missing the rest of the callstack.
regards
Rudolf
Re: Error DC_PRINTER:INIT
Posted: Wed Feb 01, 2017 9:41 am
by rdonnay
The below code, from _DCPRC.PRG, is causing the error.
Something appears to be causing a problem with the initialization of oPrinter:oStatusDlg.
Code: Select all
STATIC FUNCTION _CancelDialog( oPrinter )
LOCAL oXbp, mp1, mp2, nEvent, nPage := 0, cTitle
cTitle := oPrinter:cTitle // oPrinter:cPrinterName
Sleep(50)
oPrinter:oStatusDlg := XbpDialog():new(AppDeskTop(), oPrinter:oOwner,{0,0},{200,100},,.f.)
oPrinter:oStatusDlg:title := cTitle
oPrinter:oStatusDlg:minButton := .f.
oPrinter:oStatusDlg:maxButton := .f.
oPrinter:oStatusDlg:create() <<<<<<<<<<<<<<<<< Causes an error
oPrinter:oStatusDlg:setModalState(XBP_DISP_APPMODAL)
I suggest that you try putting a Sleep(100) just prior to the :create() method.
You will need to rebuild DCLIPX.DLL.
Re: Error DC_PRINTER:INIT
Posted: Wed Feb 01, 2017 1:04 pm
by Cliff Wiernik
I get a similar error sporadically when user try to open a dialog. You have code to check the status just prior to the :create call. Till commented that is could be another thread that could be coming into focus on the screen and the create is trying to operate on that thread.
In my instance it could be a possibility and I need to now try to log it to validate this. Otherwise, I wonder if it could be some type of memory corruption in the run time Xbase++ runtime environment.
Cliff
Re: Error DC_PRINTER:INIT
Posted: Thu Feb 02, 2017 1:09 am
by c-tec
Hello, this problem occurs only at one customer where I also have strange loss of private variables that happens also periodically. They use the software via RDP connection. I try now chaning the RDP user and workstation to nail down the problem.
regards
Rudolf