Hi all,
For my project, there is a defined ContainerControl say myContainerControl. A Webpage with a property say myLocContainer (of class myContainerControl).
if myLocContainer <> nil then myLocContainer.close
myLocContainer = new myContainerControl
myLocContainer.EmbedWithin(self, …)
In debug mode, myLocContainer is nil only when the program first run. After myLocContainer is created, even after executing myLocContainer.close, object myLocContainer and all its variables are still there, looks like .close never executed. The program still runs normally, but if there is any potential problem (memory leak) if I keep on ‘new’ the container? Or do I have to set myLocContainer = nil?
Thanks.