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

Closed
mborgues opened this issue Jun 22, 2023 · 2 comments
Closed

Automapper copy object reference instead of content #119

mborgues opened this issue Jun 22, 2023 · 2 comments

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?

@exilon
Copy link
Owner

exilon commented Sep 25, 2024

This issue was closed because it has been open for more than 90 days with no activity.

@exilon exilon closed this as completed Sep 25, 2024
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