''' <summary> ''' Using generics will solve some performance issues ''' </summary> ''' <typeparam name="T"></typeparam> ''' <param name="item"></param> ''' <returns></returns> Public Shared Function DeepCopy(Of T)(item As T) As T Dim formatter As New BinaryFormatter() Dim stream As New MemoryStream() formatter.Serialize(stream, item) stream.Seek(0, SeekOrigin.Begin) Dim result As T = DirectCast(formatter.Deserialize(stream), T) stream.Close() Return result End FunctionDo you think I should have used a deep copy instead to avoid such situation, assuming the problem I am facing is in fact due that this is not a real copy of everything included in oApp?