I have a container I dynamically embedwithin a window. I add this into an array and manage the app. I then close that container in the array, set it to Nil, and then remove it from the array. The window still holds a reference to it and I am trying to figure out what I am missing in order to delete the window’s reference to this container.
// CREATE THE DevProfileContainer
DynDevProfileClass.DynDevProfileContainer = New DevProfileContainer
DynDevProfileClass.DynDevProfileContainer.Left = 230
DynDevProfileClass.DynDevProfileContainer.Top = 104
DynDevProfileClass.DynDevProfileContainer.EmbedWithin(AristaEAPI_Window)
// APPEND TO DynDevProfileClassArray
Common_Module.DynDevProfileClassArray.Append DynDevProfileClass
// REMOVE ALL ASSOCIATED CONTAINERS/SOCKETS/ETC.
AristaEAPI_Window.DynResultsContainerArray(AristaEAPI_Window.SelectedIndexID).Visible = False
AristaEAPI_Window.DynResultsContainerArray(AristaEAPI_Window.SelectedIndexID).Close
AristaEAPI_Window.DynResultsContainerArray(AristaEAPI_Window.SelectedIndexID) = Nil
Common_Module.DynDevProfileClassArray.Remove AristaEAPI_Window.SelectedIndexID
this is after the above snippet runs.
I know I must be missing something?
Thank you much in advance!