Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automapper copy object reference instead of content #119

Open
mborgues opened this issue Jun 22, 2023 · 1 comment
Open

Automapper copy object reference instead of content #119

mborgues opened this issue Jun 22, 2023 · 1 comment

Comments

@mborgues
Copy link

When an object has a second internal object (in my case a TArray), 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):
image

the code:
image

the error:
image

@exilon
Copy link
Owner

exilon commented Feb 25, 2024

Could you provide a quick code example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants