Hier auch noch ein Verbesserungsvorschlag: FastMM4 meldet einige MemoryLeaks wenn ich deine Komponente verwende:
Code:
---------------------------
Test.exe: Memory Leak Detected
---------------------------
This application has leaked memory. The small block leaks are (excluding expected leaks registered by pointer):
21 - 28 bytes: TBrush x 1, TPen x 1
29 - 36 bytes: TFont x 1, Unknown x 2
53 - 60 bytes: TBitmap x 1
61 - 68 bytes: Unknown x 1
93 - 100 bytes: TBitmapCanvas x 1
109 - 116 bytes: TBitmapImage x 1
Note: To obtain a log file containing detail on memory leaks, enable the "FullDebugMode" and "LogMemoryLeakDetailToFile" conditional defines. To disable this memory leak check, undefine "EnableMemoryLeakReporting".
---------------------------
OK
---------------------------