T
tshad
If I create an object (instantiate) then do it again using the same Pointer,
will I leave the old object hanging around wasting memory?
Would this create a memory leak or would it be taken care of when I leave
the function?
**********************************************************
Sub ActiveJobEdit_Click(s as Object, e as ImageClickEventArgs)
Dim newPosition as Position = new Position(oLabel.Text)
....
newPosition = new Position(otherLabel.Text)
session("newPosition) = newPosition
End Sub
**********************************************************
Thanks,
Tom
will I leave the old object hanging around wasting memory?
Would this create a memory leak or would it be taken care of when I leave
the function?
**********************************************************
Sub ActiveJobEdit_Click(s as Object, e as ImageClickEventArgs)
Dim newPosition as Position = new Position(oLabel.Text)
....
newPosition = new Position(otherLabel.Text)
session("newPosition) = newPosition
End Sub
**********************************************************
Thanks,
Tom