Page 1 of 1

Printer exception handling

Posted: Mon May 31, 2010 12:02 pm
by 10547181
The functions TTreePage.GetHeight and TTreePage.GetWidth in unit TeeTree.pas contain a try..except-block to catch EPrinter exceptions. In case your printer spooler service is offline, you'll get an exception of type EOSError (RPC server offline) and the application continues throwing exceptions caused by access violations.
My suggestion is to catch any exceptions in these functions, not just those of type EPrinter.

Re: Printer exception handling

Posted: Tue Jun 01, 2010 1:41 pm
by yeray
Hi Collinor,

You are right. I could reproduce it and it seems to be solved both capturing all the exceptions or only the EOSError. I've added it to the wish list to be studied for inclusion in future releases (TV52014924).