flext icon indicating copy to clipboard operation
flext copied to clipboard

call-loop with FLEXT_USE_CMEM

Open i-n-g-o opened this issue 3 years ago • 2 comments

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 avatar Jan 02 '22 14:01 i-n-g-o

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.

i-n-g-o avatar Sep 07 '22 08:09 i-n-g-o

Created PR #55 - let's see.

grrrr avatar Jul 25 '23 19:07 grrrr