I wrote some program in C++ Builder 6 (don't ask me why).
I do some actions with on-form components after formResize event occurs.
But it occurs right after I close my program, and looks like all components on form where deleted, so I've got exception and everything crashes.
There is my code:
void __fastcall TForm3::FormResize(TObject *Sender)
{
Image1->Picture->Graphic->Width = Image1->Width;
Image1->Picture->Graphic->Height = Image1->Height;
}
What can I do with that?