Printing of tabs
Posted: Wed Sep 07, 2005 8:27 am
When I print multiple document with a lot of tab-characters in it, my computer suddenly reboots, with no warning / blue screen or whatever. I found that when I changed the procedure TRVTabItemInfo.DrawTab(...)
the reboots don't happen again.
The line if Canvas.Brush.Color<>clNone is always true, because the high order byte of Canvas.Brush.Color is different as the high order byte of clNone (at least on my system / printer).
I don't know which part of the system (printer / printer driver / printer spooler) crashes, but one of them definately doesn't like the printing of loads of white rectangles.
Code: Select all
// if Canvas.Brush.Color<>clNone then
if (Canvas.Brush.Color and $FFFFFF) <> (clNone and $FFFFFF) then
The line if Canvas.Brush.Color<>clNone is always true, because the high order byte of Canvas.Brush.Color is different as the high order byte of clNone (at least on my system / printer).
I don't know which part of the system (printer / printer driver / printer spooler) crashes, but one of them definately doesn't like the printing of loads of white rectangles.