Hi
I use RO SDK
const
RO_VERSION = '9.5.111.1399';
We noticed that the property TROUri.PathElements
behaves as a factory method instead of a property. As a client of the class I would expect that the TROUri
object manages the instance created by its getter GetPathElements
. Instead, the getter spawns a new object each time on accessing the property that could lead to memory leaks in client code.
IMO it would make sense either
- keep the property “as is” but manage the internal object FPathElements
- introduce a new method like CreatePathElements/ParsePathElements/… instead of the property
regards