blikblum / VirtualTreeView-Lazarus

Virtual Treeview is a treeview control
50 stars 15 forks source link

LCLCocoa "Range check error" in InitializeGlobalStructures #12

Open Shebuka opened 5 years ago

Shebuka commented 5 years ago

What is the VirtualTreeView version / branch?

latest lazarus-v5

What is the Lazarus and Freepascal version?

Lazarus 2.1.0 r61403 / FPC 3.0.4

Does the bug occurs also in Delphi?

No

With LCLCocoa the component fails to initialize. The problem seems to reside in the ClipboardRegister of custom formats inside InitializeGlobalStructures. More details and full discussion on Lazarus form: https://forum.lazarus.freepascal.org/index.php/topic,45432.0.html

skalogryz commented 5 years ago

try this patch formattype.diff.zip

Shebuka commented 5 years ago

This patch seems to work perfectly!

blikblum commented 5 years ago

Tried to apply the patch but failed. I will happily to apply if someone creates a PR