lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Fw: problem in memp_alloc()


From: Kieran Mansley
Subject: Re: [lwip-users] Fw: problem in memp_alloc()
Date: Wed, 01 Jul 2009 15:59:00 +0100

On Wed, 2009-07-01 at 10:41 -0400, Francois Bouchard wrote:
> Thanks for your help. 
>  
> In my case pbuf_alloc( PBUF_RAW, pNBuf->length, PBUF_POOL) is calling
> memp_malloc(). 

That is odd.  Can you tell us what the value of "type" and MEMP_MAX are
when the assertion fires?

Valid memp types are controlled by lwip/memp_std.h, in a somewhat
obscure bit of coding.  This file is imported to define, among other
things, the enum memp_t in lwip/memp.h which in turn will set the value
of MEMP_MAX and MEMP_PBUF_POOL.  This should ensure that MEMP_PBUF_POOL
is < MEMP_MAX, but if the assertion is firing this is not the case and
something very strange has happened.

Kieran





reply via email to

[Prev in Thread] Current Thread [Next in Thread]