Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #32283

Re: Workaround found (was: Re: Eclipse RCP application: USB print hang)

From Andreas Leitgeb <avl@auth.logic.tuwien.ac.at>
Newsgroups comp.lang.java.programmer
Subject Re: Workaround found (was: Re: Eclipse RCP application: USB print hang)
Date 2015-08-08 14:05 +0000
Organization A noiseless patient Spider
Message-ID <slrnmsc38k.uoi.avl@login.logic.tuwien.ac.at> (permalink)
References <mq0fh1$dht$1@Gaia.teknon.de> <mq3bhq$7eq$1@Gaia.teknon.de>

Show all headers | View raw


Volker Borchert <v_borchert@despammed.com> wrote:
> In comp.lang.java.programmer, Volker Borchert wrote:
>> Printing hangs in native StartDocW GDI API function.
>> Printing works after opening the printer setup/properties dialog,
>>          even if cancelled immediately.
>> Printing from e.g. WordPad instead, works.
> So I added half a line of code that eventually calls GetDeviceCaps,
> and this seems sufficient to kick the printer sufficiently awake.

Just out of curiosity... do any leds or other displays on the printer
reflect this "waking up" when opening (and cancelling) the properties?

Another test: from within Windows open the properties dialog, cancel
it, then wait until printer goes back to sleep, then print.  If it
hangs again, then the printer just needs it, otherwise, if it then
wakes up and prints just fine, then some driver is broken.

> I don't think this is a solution, but as a workaround, it'll do.

Depending on result of above test, it might be just the right
workaround for either a bug in the printer or in the driver.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Eclipse RCP application: USB print hang v_borchert@despammed.com (Volker Borchert) - 2015-08-06 20:19 +0000
  Re: Eclipse RCP application: USB print hang Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-06 21:35 +0000
    Re: Eclipse RCP application: USB print hang v_borchert@despammed.com (Volker Borchert) - 2015-08-07 04:10 +0000
      Re: Eclipse RCP application: USB print hang Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-07 10:00 +0000
      Re: Eclipse RCP application: USB print hang Jeff Higgins <jeff@invalid.invalid> - 2015-08-07 09:01 -0400
  Workaround found (was: Re: Eclipse RCP application: USB print hang) v_borchert@despammed.com (Volker Borchert) - 2015-08-07 22:30 +0000
    Re: Workaround found (was: Re: Eclipse RCP application: USB print hang) Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2015-08-08 14:05 +0000

csiph-web