QuickLib
QuickLib copied to clipboard
Automapper copy object reference instead of content
When an object has a second internal object (in my case a TArray<Bytes>), it is copying its reference instead of the content, however when I destroy the source object it generates an "invalid pointer operation" error, precisely because the reference assigned to the mapped object refer to the previous one.
the object (the destination object has the same fields):
the code:
the error:
Could you provide a quick code example?