Let's say you have this code:
dim mb1 as new Xojo.Core.MemoryBlock( somePtr, theSize ) dim mb2 as Xojo.Core.MemoryBlock = mb1.Clone
You'd expect mb2 to be a copy of the data in mb1, right? Well, it's not. mb2 ends up pointing to mb1. If mb1 has been created "normally", it works as expected.
See here for the report and a demo project: