Re: [OpenJDK 2D-Dev] [10] RFR JDK-8186987:NullPointerException in RasterPrinterJob without PrinterResolution

2017-09-20 Thread Philip Race
Since we are relying on 0 then we need to be sure that the memory starts off as zero so a non-zero value is not random left-over from a previous user of that memory. If I read correctly we allocate this memory using GlobalAlloc in AwtPrintControl::getDevmode and there pass GPTR which should

Re: [OpenJDK 2D-Dev] [10] RFR JDK-8186987:NullPointerException in RasterPrinterJob without PrinterResolution

2017-09-20 Thread Prasanta Sadhukhan
Hi Phil, On 9/19/2017 3:16 AM, Phil Race wrote: Hi, On 09/04/2017 03:07 AM, Prasanta Sadhukhan wrote: Hi Prahalad, Phil, JDK uses DocumentProperties function [1] to query the printer configuration data in windows. For a RIcoh printer which we (in IDC) use by default, pDevMode->dmFields