× CodeTyphon MS Windows (XP, Vista, Win7, Win8.x and Win10) OS Development, discussions and problems

Important BigIDE loading failure due to offline printer

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 8 months ago #1960 by Manos S. Pappas
BigIDE loading failure due to offline printer was created by Manos S. Pappas
After experiencing this and spending some time with Windbg, it came down to this:

When BigIDE loads, some component related to printing (LazPrint?), tries to enumerate the available printer drivers in the system.
This works fine, but the component also tries to "open" the default printer. If this printer is offline (i.e not connected to the computer or not reachable), BigIDE hangs.
This behaviour is related to the Windows architecture used, i.e if you're using x86_64 then the 64-bit BigIDE crashes, not the 32-bit one.

The workaround to this issue is to make sure that the default Windows printer selected is ALWAYS available. This is of course not possible with real printers, so a virtual one is needed. I've used PDFCreator and after setting it to be the default printer, everything works fine.

I have a bad feeling that the same thing happens not just to BigIDE, but to applications using these printing components; unfortunately, my Pascal knowledge is limited in order to write a test program to verify this case.

Best Regards,
Manos S. Pappas

Please Log in or Create an account to join the conversation.

  • Konstantinos Papadoulas
  • Offline
  • Junior Member
  • Junior Member
More
9 years 8 months ago #1966 by Konstantinos Papadoulas
Replied by Konstantinos Papadoulas on topic Re: BigIDE loading failure due to offline printer
Hi Μάνο,

I will try to test your theory later today. i will also write a test program using both 32 and 64 bit environments (my win though is a 64 bit one).
While reading your post it snapped to me that i also have a virtual printer (bullzip) as the default printer in my system. My real printer is a Network printer and as you can imagine is not always powered on.
The other think that also crossed my mind is the your problem might coming from a printer that is physically connected on your pc. But later we will know.

Kostas

Please Log in or Create an account to join the conversation.

  • Konstantinos Papadoulas
  • Offline
  • Junior Member
  • Junior Member
More
9 years 8 months ago #2010 by Konstantinos Papadoulas
Replied by Konstantinos Papadoulas on topic Re: BigIDE loading failure due to offline printer
Unfortunately i couldn't reproduce the error on my system. Maybe because my printer is a network printer and windows do not see it as offline.

Please Log in or Create an account to join the conversation.

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 8 months ago #2012 by Manos S. Pappas
Replied by Manos S. Pappas on topic Re: BigIDE loading failure due to offline printer
That's strange. Mine is a network printer too (Lexmark Pro705) and the problem appears when the printer is not turned on.
The exact error condition is: offline DEFAULT printer (network or not).

Best Regards,
Manos S. Pappas

Please Log in or Create an account to join the conversation.