Printer exception handling
Posted: Mon May 31, 2010 12:02 pm
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.
My suggestion is to catch any exceptions in these functions, not just those of type EPrinter.