"Mariusz Dz" <[email protected]> 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
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to