View Revisions: Issue #23026

Summary 0023026: Program crashes if printer units are added to project under windows 64bit
Revision 2013-04-11 17:45 by Luiz Americo
Description To get the crash:

1) Create an empty project
2) Add printer4lazarus requirement
3) Add Printers unit to uses
4) Run the program
5) Close the program -> BUM!

The crash occurs in a call to CreateDC in a cascade started due to a call to DoResetPrintersList in destructor of TWinPrinter

Removing the call to DoResetPrintersList fixes the issue

Using Lazarus 1.0 r38415 FPC 2.6.0 x86_64-win64-win32/win64 under windows 7 64bit

Tested again with Lazarus 64bit 1.0.8 + fpc 2.6.2 (official installer) under windows 7
Revision 2012-09-30 02:32 by Luiz Americo
Description To get the crash:

1) Create an empty project
2) Add printer4lazarus requirement
3) Add Printers unit to uses
4) Run the program
5) Close the program -> BUM!

The crash occurs in a call to CreateDC in a cascade started due to a call to DoResetPrintersList in destructor of TWinPrinter

Removing the call to DoResetPrintersList fixes the issue

Using Lazarus 1.0 r38415 FPC 2.6.0 x86_64-win64-win32/win64 under windows 7 64bit