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

call-loop with FLEXT_USE_CMEM #49

Open
i-n-g-o opened this issue Jan 2, 2022 · 2 comments
Open

call-loop with FLEXT_USE_CMEM #49

i-n-g-o opened this issue Jan 2, 2022 · 2 comments

Comments

@i-n-g-o
Copy link

i-n-g-o commented Jan 2, 2022

Hello.

I ran into problems using FLEXT_USE_CMEM, it result in a call-loop:

void *operator new(size_t bytes) in flsupport.cpp calls flext_root::operator new(bytes);
which is inlined with: ::operator new(bytes); defined in flsupport.h
which calls the global new operator again.

Not sure what the idea was about FLEXT_USE_CMEM, but this seems wrong.
It looks like neither the global new operator nor the inline new-operator is necessary?

@i-n-g-o
Copy link
Author

i-n-g-o commented Sep 7, 2022

I worked on this issue on this branch (removing new and delete functions):
https://github.com/rabbitControl/flext/tree/cmem_remove_new_delete

If you like i can create a PR for this.

@grrrr
Copy link
Owner

grrrr commented Jul 25, 2023

Created PR #55 - let's see.

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