MCF5235 Malloc()/Free() Failed 2

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MCF5235 Malloc()/Free() Failed 2

2,373 次查看
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 回复

717 次查看
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 项奖励
回复