I am using an imaging ActiveX control called TImageMan. I've placed one
TImageMan control on the form. From that component, I create many instances "on the fly." I add a row and column number to the end of "IM" ( e.g IM11, IM12, IM21,IM22) to make each instance unique. See code below.
How do I destroy the instances of TImageMan (IM11, IM12, IM21, IM22, etc...?) so I can rerun the program multiple times without closing it down?
TForm1 = class(TForm)
IM : TImageMan;
IM := TImageMan.Create(self);
IM.Name := 'IM'+IntToStr(i)+IntToStr(j);