Hello, I have two forms. The second form, has a TTreeView with a few items. And a Public procedure to clear the items (called clearAll).
SomeThing like this:
TreeView1.Items.Clear
The main form, has a button, to call "ClearAll".
The program compiles ok, and runs ok. But If I remove the second form, from automatic created. And I create the form, like this:
FormTreeView:= TMyForm.Create(frMain);
FormTreeView.Show;
In the create event of the main form.
I have FormTreeView declarated on public secction of MainForm.
When the programs execute: TreeView1.Items.Clear gives me a exception.
What's wrong?
I have Lazarus 0.9.29 SNV:27267
Thanks
/BlueIcaro