TCustomContol loses their Canvas handle
Original Reporter info from Mantis: Valdas
-
Reporter name: Valdas Jankūnas
Original Reporter info from Mantis: Valdas
- Reporter name: Valdas Jankūnas
Description:
Situation:
- app dynamically creates control (class TCustomControl);
- that control have Resize (overrided) procedure;
- in that procedure is accessing Canvas of that control.
After closing app, debug reported (report attached) that some resources (DC, ...) are not freed.
I found that in this situation control loses first handle of their Canvas.
Test app attached.
Mantis conversion info:
- Mantis ID: 8595
- OS: kUbuntu
- OS Build: 6.10
- Build: 10833
- Platform: i386 32bit
- Version: 0.9.21 (SVN)
- Monitored by: » DarekM (Darek Mazur), » luizamerico (Luiz Americo)
- Target version: 1.0.0
- LazTarget: 1.2