I made a small application which print some JPanel content:
....
disableDoubleBuffering(componentToBePrinted);
componentToBePrinted.paint(graphics);
enableDoubleBuffering(componentToBePrinted);
....
It prints OK on a matrix printer Epson LQ 670, but on a
LaserJet HP I got this:
p.s.
it prints without disabling double buffering but quality is very low.
Unexpected Signal : EXCEPTION_FLT_DIVIDE_BY_ZERO (0xc000008e) occurred at
PC=0xBFAAB8
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
Dynamic libraries:
0x7CC00000 - 0x7CC1D000 C:\WINDOWS\SYSTEM\IMAGEHLP.DLL
Heap at VM Abort:
Heap
def new generation total 576K, used 203K [0x10010000, 0x100b0000,
0x104f0000)
eden space 512K, 27% used [0x10010000, 0x10033128, 0x10090000)
from space 64K, 98% used [0x10090000, 0x1009fc30, 0x100a0000)
to space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
tenured generation total 2244K, used 2025K [0x104f0000, 0x10721000,
0x14010000)
the space 2244K, 90% used [0x104f0000, 0x106ea760, 0x106ea800,
0x10721000)
compacting perm gen total 7168K, used 7102K [0x14010000, 0x14710000,
0x18010000)
the space 7168K, 99% used [0x14010000, 0x146ff8b0, 0x146ffa00,
0x14710000)
Local Time = Sat May 29 13:54:06 2004
Elapsed Time = 78
#
# HotSpot Virtual Machine Error : EXCEPTION_FLT_DIVIDE_BY_ZERO
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-beta-b19 mixed mode)
#
# An error report file has been saved as hs_err_pid4294668251.log.
# Please refer to the file for further information.
#