Error DC_PRINTER:INIT

This forum is for eXpress++ general support.
Post Reply
Message
Author
c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Error DC_PRINTER:INIT

#1 Post 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
Attachments
Screenshot error
Screenshot error
image001.png (329.01 KiB) Viewed 8936 times
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Error DC_PRINTER:INIT

#2 Post 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.
The eXpress train is coming - and it has more cars.

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Error DC_PRINTER:INIT

#3 Post 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

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Error DC_PRINTER:INIT

#4 Post 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
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

Post Reply