![]() |
[gelöst]TListBox.Assign(TStringList) = Zufalls Exception
Hi,
ich hab mal (wieder) ein Problem: Ich habe ein TListBox, der ich mittels Assign eine StringList zuweisen möchte ... so weit, so gut. Wenn ich diese Anweisung ausführe, erhalte ich eine Zufalls-Exception. Der Code:
Delphi-Quellcode:
Main ist meine Form, KeyBlockData meine ListBox, KeyData eine StringList
Main.KeyBlockData.Items.Assign(KeyData);
Wo liegt mein Fehler??? Ich hab genau die selbe Anweisung auf eine andere Listbox und die funktioniert Problemlos. Ach ja: KeyData ist eine gültige Instanz, sie wird erst hinterher aufgelöst. mfG Markus EDIT: Das Problem wurde offenbar durch eine StringList.Capacity := integer verursacht ... komisch, aber das Problem ist gelöst. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:39 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz