Menu

#105 ERROR_INSUFFICIENT_BUFFER in Windows

1.3.0.0
closed
None
2016-03-10
2016-01-14
Gari
No

In Windows the next error is returned getting the list of interface addresses:
GetIfTable(pIfTable, &dwSize, 0) == ERROR_INSUFFICIENT_BUFFER)
File: trdp_wg\src\vos\windows\vos_sock.c
It's not allocated enough buffer size to store all the interfaces information.

Discussion

  • Bernd Löhr

    Bernd Löhr - 2016-03-10

    This call is made to get the needed buffer size. Testing on XP does not show any error (see vtest.c, line 1388).

     
  • Armin-Hagen Weiss

    • status: open --> closed
     
  • Armin-Hagen Weiss

    Under Windows 7/64 it works too. First call of GetIfTable() in vos_getInterfaces() is done to get the length of the IF table and returns an error. The second call, done with the correct length, works and delivers the base for the result for vos_getInterfaces().

     

Log in to post a comment.

MongoDB Logo MongoDB