[uClinux-dev] running out of memory OR NOT???

Bernhard Kuhn bkuhn at metrowerks.com
Mon Mar 3 17:13:19 EST 2003


thomas chen wrote:

> Allocation of length 160522 from process 33 failed
[...]
> 43*4kB 11*8kB 1*16kB 1*32kB 0*64kB 1*128kB 0*256kB 0*512kB 0*1024kB
> 0*2048kB = 436kB)

You application tries to allocate 160 KiB of memory, but the biggest
contiguous junk of memory left at that moment is only 128 KiB.

> but then program task continues to run????

malloc() returns with an error value - you need to decide in
your application what needs to be done, then.

 > after the message and seems to work  just fine

Maybe your application doesn't use the newly allocated memory? :-)

Bernhard





More information about the uClinux-dev mailing list