I'm running FlexBASIC, current version, on a P2-EVAL Rev B under Win10. I'm trying to chase down what appears to be memory leak.
Assume that I create a string:
dim myStr$ as string
myStr$ = "This is a test"
Now assume that after creating this string, I decide to wedge a null character (Chr$(0)) between "This" and " is". When the string is ultimately released, does the garbage collection routine understand that it needs to reclaim the whole 15 character string memory space, or does it hit that null at offset 5 and stop there?