Sehr kurzer Ausriss aus meinem aktuellen Code:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18:
| unit MainUnit;
type TTranslateDictionary = TObjectDictionary<string, String>;
var transTable: TTranslateDictionary;
implementation
procedure FillTransTable; begin transTable := TTranslateDictionary.Create([doOwnsValues]); end; |
FillTransTable aufzurufen wirft mir aber jedes Mal einen Fehler: "Ungültige Typumwandlung". Das passiert eindeutig in dem, was oben Zeile 16 ist. Spannende Frage an dieser Stelle: Warum?