lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Problem with multi file sending http server


From: Simon Goldschmidt
Subject: Re: [lwip-users] Problem with multi file sending http server
Date: Fri, 26 Nov 2010 06:46:29 +0100

 "Mariusz Dz" <address@hidden> wrote:

> I hope i understand order of calls, now i have got order like this:
> 
> //some operation on data
> //close file etc.
> 
> pbuf_free(p);
> hs->file = pointer_on_data;
> hs->left = data_length
> tcp_recved(pcb, p->tot_len);

No, that's wrong. Ppuf_free is like delete and you must not go on using a pbuf 
after it has been freed. This means not accessing the data AND not accessing 
any of it's members!

Simon


reply via email to

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