Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, April 2008
Re: Using Qt4 without malloc and/or with allocators?


Message 1 in thread

Thiago Macieira wrote:
> Luca Paone wrote:
>>  Is there any way to change malloc/free use in Qt such that we can use
>>  a sort of statically allocated (at startup) memory pool ?

> This is very easy to do on Linux and doesn't even require changing Qt. You 
> can even do it with a Qt shipped by a distribution! Simply create the 
> functions malloc(), realloc() and free() in your program and compile it 
> with -rdynamic.

Yes. you can provide your own allocator without much effort.
But actually it's not enough data to give advice.

What OS do you use?
Why you want to restrict app memory? - i.e. what kind of problem you try 
to address?

--
 [ signature omitted ]