Is it possible to use Qt without dynamic memory management? I want to use pools for everything.
-
It would be especially welcome feature for embedded development, where memory is constrained and I want to make sure that I have enough for everything. Even if I waste a little memory when for example two features are never used simultaneously but I reserve space for both of them. Still its better than an application which seems to work until it doesn't. I just need to be sure. And by "use pools for everything" I mean everything. All those little objects like QSharedPointer control block or connection or something else should also be pool-managed.
-
Sounds like you need to use your own implementation of new then?
-
Thanks. Hadn't thought of of that. Do you think that anyone has done anything like this or similar? I now I didn't but I'll be happy to try.
-
I don't know, never tried something like this myself...
-
Hi,
IIRC, there was qMalloc, qFree and qRealloc meant for that use case
-
Problem is: those were deprecated years ago.
-
Sorry for the old pointer. They are not only deprecated but also not used anymore in Qt 5.