MCF5235 Malloc()/Free() Failed 2

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MCF5235 Malloc()/Free() Failed 2

2,374件の閲覧回数
Arev
Contributor III
hello,
 
I'm using malloc(), free() functions in a loop and my application crash down. When i try to free() memory allocated with malloc(), the memory is not freed and the next malloc() call use the next memory region until whole heap memory is used and application crash down.
 
When "alloc.c" file is included in my project, both malloc() and free() work well.
The project uses functions from "alloc.o" instead of "C_4i_CF_MSL.a(alloc.o)" or "C_4i_CF_StdABI_MSL.a(alloc.o)" depending on the linked library.
 
Is there any problem with Freescale libraries ??
 
Thanks for Help
 
ラベル(1)
0 件の賞賛
返信
1 返信

718件の閲覧回数
Arev
Contributor III
:smileyvery-happy:
 
I found the solution,
 
The problem was a bad old "Prefix File" in my project "mwerks.h" that I replaced by "ram_symbol.h" and now everything works well.
 
:smileywink:
0 件の賞賛
返信