Uwe Bonnes bon at
Fri May 17 02:20:54 CDT 2002

>>>>> "John" == John K Hohm <jhohm at> writes:

    John> I am implementing a COM object in comcat.dll that allocates itself
    John> with HeapAlloc and frees itself on its last Release with HeapFree.
    John> I am using it in a simple test program that creates it and
    John> releases it, and when the Release happens I get this:

    John> err:heap:HEAP_ValidateInUseArena Heap 40340000: in-use arena
    John> 40378878 next block has PREV_FREE flag

    John> It seems to be saying that I'm freeing an already-free block.  I
    John> ran the test program with --debugmsg trace+all, and I can see that

those problems are normally caused by writing more memory then allocates,
resulting in heap corruption. A good way to look after the problem is to run
with --debugmsg -relay=x11drv,+heap, as the +heap argument checks the heap
on every heap operation and the result doesn't get so cluttered as with
+all. Eventually +ole might be helpfull, as comcat used the ole chanel.

Uwe Bonnes                bon at

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

More information about the wine-devel mailing list