Program crashes if printer units are added to project under windows 64bit
Original Reporter info from Mantis: luizamerico
-
Reporter name: Luiz Americo
Original Reporter info from Mantis: luizamerico
- Reporter name: Luiz Americo
Description:
To get the crash:
- Create an empty project
- Add printer4lazarus requirement
- Add Printers unit to uses
- Run the program
- 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
Mantis conversion info:
- Mantis ID: 23026
- Version: 1.0.8
- Fixed in version: 1.3 (SVN)
- Fixed in revision: 43024 (#6d093a3d)
- Monitored by: » jepafi (Jean Patrick), » faber (Tomasz Wieckowski)
- Target version: 1.2.0
- LazTarget: 1.2