On 19.05.18 16:43, Steven Levine wrote:
> Perhaps it would help if you posted the code that fails to do the
> delete. It's easy to be off by one if you are not familar with
> pointers.
The code is quite complex. I would have done that, if it were easier.
But I don't have an idea now how to post a complete minimal example.
It's a replacement for usual OS/2 ini keys, where keys are placed as
usual under the application "RegKeys" and their paths additionally
under the application "RegContainer". The value of a RegContainer key
consists of all subpath values of that key. These single values have
trailing null chars as separators for easier processing.
The advantage of the RegContainer tree is that existing paths can be
queried without having to query and analyze an entire ini application.
I've found that on deleting a RegKey key, together with its
RegContainer key, can remove a null char too much. Therefore I want
to make such a key value visible, which is not possible without
converting the null chars.
If I would post that faulty function, I would have to post almost
everything of that part of the library, to make the code complete.
--
Andreas Schnellbacher