lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Re: mem_malloc return NULL


From: Akshat Bisht
Subject: [lwip-users] Re: mem_malloc return NULL
Date: Tue, 26 Aug 2008 17:08:02 +0530

Oh forgot to add- this is happening right when i start the ppp thread. at
**********************************
static void
pppMain(void *arg)
{
  int pd = (int)arg;
  struct pbuf *p;
  PPPControl* pc;
  int c;
 
 //OS_Suspend(&ppp);
 
  pc = &pppControl[pd];
  
 
  p = pbuf_alloc(PBUF_RAW, PPP_MRU+PPP_HDRLEN, PBUF_RAM);
 
  if (!p) {
    
    LWIP_ASSERT("p != NULL", p);
    pc->errCode = PPPERR_ALLOC;
    goto out;
  }
*********************************
It enters the above IF..


Thanks

AB



On Tue, Aug 26, 2008 at 5:03 PM, Akshat Bisht <address@hidden> wrote:
For some reason mem_malloc is returning NULL. Where do i need to look "under-the-hood" to check if i'm giving enough memory or where to look for problems? I don't have a means to debug, i'm just glowing LED's on kit to find where program reaches. :)

Thanks and regards,


AB


reply via email to

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