 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Loren Szendre Guest
|
Posted: Sun Feb 18, 2007 9:12 am Post subject: A/V in imfnt5.dll when printing |
|
|
We are have 2 extremely similar procedures for printing (painting
directly on the Canvas). One produces an intermittent A/V in the
imfnt5.dll. I did a bit of research and it appears that Delphi apps with
a certain HP driver sometimes combine to produce this error. Tracing the
error, it occurs on a line of code that simply sets the font size to a
different value. What's even stranger, that particular HP printer has
nothing to do with the current print job.
Has anyone else seen this error or have any insightful comments?
Loren |
|
| Back to top |
|
 |
Martin E. Barreda Guest
|
Posted: Thu Mar 29, 2007 8:12 am Post subject: Re: A/V in imfnt5.dll when printing |
|
|
I am getting the same exception... with only this portion of code.
try
f := TFont.Create;
f.Assign(Printer.Canvas.Font);
TextHeight := 0;
for i := 0 to High(Items) do
begin
Printer.Canvas.Font.Name := Items[i].FName;
Printer.Canvas.Font.Size := Items[i].FSize;
Printer.Canvas.Font.Style := Items[i].FStyle;
if Printer.Canvas.TextHeight('X') > TextHeight then
TextHeight := Printer.Canvas.TextHeight('X');
end;
//DoSomePrint;
Printer.Canvas.Font.Assign(f);
f.Free;
except
Abort;
end;
The exception arise formerly when i restore font's property..
(Printer.Canvas.Font.Assign(f))... well, i try to comment the line of code
and then get the exception it another line...
It happens to me with a HP1018 laserjet printer... but if i install the
printer with HP1020 drivers, it seems not to reach the exception. For some
reason that i don't remember, i get back to HP1018 drivers (perhaps i think
i get a new one, with a solution from HP), but the program gets the same
error.
I'll probably rollback my last rollback (uhh?)... reinstalling HP1020
drivers. Keep in touch and i will tell you the result.
If you find another solution, please, tell me!!
Thanks and luck!!
Martín
"Loren Szendre" <zorenlendry (AT) yahoo (DOT) com> wrote in message
news:45d7c902$1 (AT) newsgroups (DOT) borland.com...
| Quote: | We are have 2 extremely similar procedures for printing (painting directly
on the Canvas). One produces an intermittent A/V in the imfnt5.dll. I did
a bit of research and it appears that Delphi apps with a certain HP driver
sometimes combine to produce this error. Tracing the error, it occurs on a
line of code that simply sets the font size to a different value. What's
even stranger, that particular HP printer has nothing to do with the
current print job.
Has anyone else seen this error or have any insightful comments?
Loren |
|
|
| Back to top |
|
 |
Martin E. Barreda Guest
|
Posted: Thu Mar 29, 2007 8:12 am Post subject: Re: A/V in imfnt5.dll when printing |
|
|
Sorry... tested again... same problem... installed as 1020 or 1022 it gives
the same exception.
We need another solution.
"Loren Szendre" <zorenlendry (AT) yahoo (DOT) com> wrote in message
news:45d7c902$1 (AT) newsgroups (DOT) borland.com...
| Quote: | We are have 2 extremely similar procedures for printing (painting directly
on the Canvas). One produces an intermittent A/V in the imfnt5.dll. I did
a bit of research and it appears that Delphi apps with a certain HP driver
sometimes combine to produce this error. Tracing the error, it occurs on a
line of code that simply sets the font size to a different value. What's
even stranger, that particular HP printer has nothing to do with the
current print job.
Has anyone else seen this error or have any insightful comments?
Loren |
|
|
| Back to top |
|
 |
Loren Szendre Guest
|
Posted: Thu Mar 29, 2007 11:09 pm Post subject: Re: A/V in imfnt5.dll when printing |
|
|
Martin,
it sure is a pernicious problem, eh! You're right -- you comment out the
offending line, and you just get a violation on some other line. It's
the most frustrating kind of bug to have.
Loren |
|
| Back to top |
|
 |
Martin E. Barreda Guest
|
Posted: Fri Mar 30, 2007 5:49 am Post subject: Re: A/V in imfnt5.dll when printing |
|
|
Got it!!!
In printing preferences... i check economode, and A4 as default paper...
In default preferences... as in printing preferences and set FastRes and
Economode...
I will not touch anything but i think that only with Economode set we got
the solution.
It seems to work!! but the time will tell. The error did not happen again
till now in places that occurs...
Good luck!!!
Martín
"Loren Szendre" <zorenlendry (AT) yahoo (DOT) com> wrote in message
news:460be4c9 (AT) newsgroups (DOT) borland.com...
| Quote: | Martin,
it sure is a pernicious problem, eh! You're right -- you comment out the
offending line, and you just get a violation on some other line. It's the
most frustrating kind of bug to have.
Loren |
|
|
| Back to top |
|
 |
Loren Szendre Guest
|
Posted: Fri Mar 30, 2007 8:00 am Post subject: Re: A/V in imfnt5.dll when printing |
|
|
Thanks for the suggestion, I'll give it a try
Loren |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|