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
Error DC_PRINTER:INIT
Error DC_PRINTER:INIT
- Attachments
-
- Screenshot error
- image001.png (329.01 KiB) Viewed 8927 times
Re: Error DC_PRINTER:INIT
The below code, from _DCPRC.PRG, is causing the error.
Something appears to be causing a problem with the initialization of oPrinter:oStatusDlg.
I suggest that you try putting a Sleep(100) just prior to the :create() method.
You will need to rebuild DCLIPX.DLL.
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)
You will need to rebuild DCLIPX.DLL.
The eXpress train is coming - and it has more cars.
-
- Posts: 605
- Joined: Thu Jan 28, 2010 9:11 pm
- Location: Steven Point, Wisconsin USA
- Contact:
Re: Error DC_PRINTER:INIT
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
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
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
regards
Rudolf