TPrinterSetupDialog Access Violation

投稿者:: CodeGear

概要: Workaround for TPrinterSetupDialog Access Violation
When running an application that contains TPrinterSetupDialog on a system that has no printers installed, starting the application may result in an Access Violation. Why does this happen, and how can I stop or prevent it?

Borland Technical Support has not been able to reproduce this error, so the cause remains unknown.

Test for the existence of a default printer using the following or similar code:

if (Printer()->Printers->Count)
// allow the copy
// insert default value here, instead of
// reading the non-existent default printer

公開日:: 7/31/2000 12:00:00 AM

次からのサーバー応答:: ETNASC04

Copyright© 1994 - 2013 Embarcadero Technologies, Inc. All rights reserved.