- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm using lwip tcp library in my application. I am getting EAI_MEMORY: 203 error with lwip_getaddrinfo() method. The first time the method gives no error, but when used a second time at a different place in the application, it generates this error. Can you suggest a way I could correct this error? I have tried allocating suitable amount of memory using malloc. But it was of no use.
This is the memory dumped into the BCM943364WCD1. Am I exceeding memory? How much memory can it handle?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found out the solution to this problem. The struct "addrinfo" should be free'd internally by LWIP. For this to happen, before exiting your method, make sure you call lwip_freeaddrinfo(addrInfo) on the addrinfo pointer used currently in the present scope.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found out the solution to this problem. The struct "addrinfo" should be free'd internally by LWIP. For this to happen, before exiting your method, make sure you call lwip_freeaddrinfo(addrInfo) on the addrinfo pointer used currently in the present scope.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content