I found something very interesting about the "assemply_string_To_Binary" which has many places that returns a Pointer.
Like
Result.Content, which is a generic pointer that gets used back in the main code and where this is crashing btw.
OperandEdit.Item8bit := Result.Content + (k - 1);
That is just an example of what I found.
OperandEdit.Item8Bit is a Pbyte pointer, Result.Content is a generic pointer, (K is a index in the code - 1)
This looks like translated code that went bad to me!
Also, I found the compiler will allow this to compile and alters the Pointer value in Item8bit, basically does Pointer math on it.
This code is peppered with miss deeds of pointer crashes, I can see how this can hammer the memory management!
Did I miss something ?
Jamie