[En-Nut-Discussion] Problem with malloc/realloc

Markus Dost markus.dost at dr-clauss.de
Thu Apr 26 15:51:39 CEST 2012

Ok, I've found my mistake. The pointer to an allocated memory block 
shouldn't be moved, before the block has been set free. Shame on me ...

Am 26.04.12 13:51, schrieb Markus Dost:
> Hi Harald,
> thank you for your response.
> The crash happens inside the function "NutHeapRootAlloc()" on line 225
> when it is searching for the best fit. He does the loop several times
> until he reaches a node with hn_size = 0.
> Best regards,
> Markus
> Am 26.04.12 09:04, schrieb Harald Kipp:
>> Do they crash inside the function or when using the resulting pointer?
>> A crash may also be caused by previously overwritten memory areas,
>> which may have corrupted the heap.

Dipl.-Ing. Markus Dost

Email: markus.dost at dr-clauss.de

Dr. Clauss Bild- und Datentechnik GmbH
Turnhallenweg 5a
D-08297 Zwoenitz

Phone: +49-37754-507-0
Fax: +49-37754-507-28

mail at dr-clauss.de

  Dr.-Ing. Ulrich Clauß
  Dipl.-Ing. Dagmar Clauß
Amtsgericht Chemnitz HRB 12 958
VAT: DE 812062471

More information about the En-Nut-Discussion mailing list