8000 Reallocation is completley broken when you have multiple references · Issue #3 · Frityet/ManagedC · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 5, 2024. It is now read-only.

Reallocation is completley broken when you have multiple references #3

Closed
Frityet opened this issue May 1, 2022 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@Frityet
Copy link
Owner
Frityet commented May 1, 2022

When trying to reallocate a managed pointer which has references elsewhere, the existing references are broken, as realloc frees the existing allocation. This is a BIG issue, that makes it impoossible to realloc safely!

@Frityet Frityet added the bug Something isn't working label May 1, 2022
@Frityet Frityet self-assigned this May 1, 2022
@Frityet
Copy link
Owner Author
Frityet commented May 3, 2022

The only real fix to this is by having a pointer to a reference, and changing the pointer. The problem is that it will result in having to dereference when you want to access the reference, which is not streamlined or fun to do

@Frityet Frityet closed this as completed Jul 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0