Ken Roach
Lifetime Supporting Member + Moderator
In my case, I was programmatically changing the characters inside the IP address text section of the Path string.
I didn't realize that the Length of the IP address text is encoded with a single byte inside that path segment, as well as being accounted for in the 32-bit .LEN of the Path string. And I didn't realize they were padded to be even.
Those details won't matter for your application because it sounds like you are creating/copying actual .Path strings and replacing the whole strings, rather than composing one from its elements.
I didn't realize that the Length of the IP address text is encoded with a single byte inside that path segment, as well as being accounted for in the 32-bit .LEN of the Path string. And I didn't realize they were padded to be even.
Those details won't matter for your application because it sounds like you are creating/copying actual .Path strings and replacing the whole strings, rather than composing one from its elements.