Ok. So, what can I do ?

There is what I want *need* to do in my app :

1) Allocate a large block of continous memory (cvCreateMat, from openCV)
2) I need to allocate many small block (QHash, for example, and others things) that mess up my fragmentation.
3) Deallocated the memory from 1)
4) Allocate large block of memory for PCA analysis.
5) Deallocated memory from 2) and 4)


And I need to repeat step 1 to 5 a couple of times.

The problem is that, when I try to redo step 1 for the second time, my memory is fragmented and I get a "inssuficient memory".

If I don't do step 3 (in order to reuse the matrice for the next iteration), I got an error on step 4 : "insufficient memor".


Any clues on what should I do ?