ghjlk
asked on
FREE TCOMPONENTLIST
FREE TCOMPONENTLIST
When I try to free TComponentList I get this error :
ACCESS VIOLATION,
and every time (after free method) when I try to use TComponentList named ComponentList.
How to solve this problem ?
Thanks.
When I try to free TComponentList I get this error :
ACCESS VIOLATION,
and every time (after free method) when I try to use TComponentList named ComponentList.
How to solve this problem ?
Thanks.
you should show how you free and access your list
ASKER
//first oncreate event
componentlist.create;
//then two methods of create components
componentlist.add &
componentlist.insert
//in componentlist I put Forms, ActiveX components and others.
//section new
while componentlist.count>0 do
TControl(componentlist[0]) .Free;
componentlist.free;
componentlist.create;
Thanks.
componentlist.create;
//then two methods of create components
componentlist.add &
componentlist.insert
//in componentlist I put Forms, ActiveX components and others.
//section new
while componentlist.count>0 do
TControl(componentlist[0])
componentlist.free;
componentlist.create;
Thanks.
ASKER
Sorry :
componentlist:=TComponentl ist.create ;
componentlist:=TComponentl
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.