+1 800 256 3608 (toll-free in North America) or +49 7531 90 60 10| service@combit.com

CMLL18 - add printer '\serverprinter' to PAI -> cannot be opened


(M. Hansler) #1

We use CMLL18 in a application to generate forms. While printing occasionally CMLL18 can not find the printer and the whole application crashes. It seems to happen while printing one form. When printing multiple forms the application finishes the job.
Using Debwin3 we managed to find an issue after CMLL18 finishes filling LlDefineVariableExt and LlDefineFieldExt.
This happens only in a Windows 2008R2 Remote Desktop Host server. Using the same version of the application on Windows Server 2003 TS there never was a problem.

Is there anything we can conclude from the output in Debwin3? Is the connection to the printer really the problem? We checked the physical connection (ping to JetDirect port) and found no problems.

CMLL18 : 07:57:22.621 000015a8/02 5 [prow32.dll] LlSetPrinterInPrinterFileA(2,32770,’\server\forms\document.lst’,-1,’\server\printer’,00000000)
CMLL18 : 07:57:22.621 000015a8/02 6 [prow32.dll] >clsApplication::hLibrary(13,0,0,1)
CMLL18 : 07:57:22.621 000015a8/02 7 [prow32.dll] >clsApplication::GetLibrary(13,0,0,0)
CMLL18 : 07:57:22.621 000015a8/02 8 [prow32.dll] <clsApplication::GetLibrary() -> 0X0FD10000
CMLL18 : 07:57:22.621 000015a8/02 9 [prow32.dll] <clsApplication::hLibrary() -> 0X0FD10000
CMLL18 : 07:57:22.652 000015a8/00 0 [prow32.dll] add printer ‘\server\printer’ to PAI -> cannot be opened. desired access=00000008: ‘Can not find any printers. (00000bc4)’
CMLL18 : 07:57:22.699 000015a8/00 1 [prow32.dll] Printer ‘\server\printer’ is in PAI -> available=0
CMLL18 : 07:57:22.699 000015a8/00 2 [prow32.dll] WTS Session: ‘RDP-Tcp#0’ (ID: 2)
CMLL18 : 07:57:22.699 000015a8/00 3 [prow32.dll] WTS: unable to enumerate sessions: The system can not open the device or file. (0000006e)
CMLL18 : 07:57:22.699 000015a8/00 4 [prow32.dll] Printer ‘\server\printer’ is in PAI -> available=0
CMLL18 : 07:57:22.699 000015a8/00 5 [prow32.dll] WTS Session: ‘RDP-Tcp#0’ (ID: 2)
CMLL18 : 07:57:22.699 000015a8/00 6 [prow32.dll] WTS: unable to enumerate sessions: The system can not open the device or file. (0000006e)
CMLL18 : 07:57:22.699 000015a8/00 7 WRN: CreateDC(\server\printer) did fail: The system can not open the device or file. (0000006e)
CMLL18 : 07:57:22.699 000015a8/00 8 [prow32.dll] WRN: failed to create DC for ‘\server\printer’
CMLL18 : 07:57:22.699 000015a8/00 9 [prow32.dll] WRN: failed to get default paper format of ‘\server\printer’
CMLL18 : 07:57:22.699 000015a8/00 0 [prow32.dll] WRN: failed to get default paper orientation of ‘\server\printer’
CMLL18 : 07:57:22.886 000015a8/0b 1 [prow32.dll] Printer ‘\server\printer’ is in PAI -> available=0
CMLL18 : 07:57:22.886 000015a8/0b 2 [prow32.dll] Printer ‘\server\printer’ is in PAI -> available=0
CMLL18 : 07:57:22.886 000015a8/0b 3 [prow32.dll] Printer ‘\server\printer’ is in PAI -> available=0
CMLL18 : 07:57:22.886 000015a8/0b 4 [prow32.dll] Printer ‘\server\printer’ is in PAI -> available=0
CMLL18 : 07:57:22.980 000015a8/06 5 [prow32.dll] Printer ‘\server\printer’ is in PAI -> available=0
CMLL18 : 07:57:22.980 000015a8/06 6 [prow32.dll] Printer ‘\server\printer’ is in PAI -> available=0
CMLL18 : 07:57:22.980 000015a8/06 7 [prow32.dll] removing the DM_ORIENTATION flag from DEVMODE as this is defined by the project
This is the last entry in Debwin3. At this time the application has crashed.


(combit Support - Patrick Preuschoff) #2

Hello Mr. Hansler,

thank you for your post.

Unfortunately, this question can not be solved in the forum. We need additional information that cannot be exchanged through the forum platform.I’d suggest to open a support case via our support portal at http://www.combit.net/support. Please copy any pertinent information from this thread into the case description.

Best regards,

Patrick Preuschoff
Technical Support
combit GmbH