locked
concurrent call getservbyname() failed in win 2012, return WSANO_DATA (11004) RRS feed

  • Question

  • The issue happens on windows server 2012 standard/datacenter.

    I have a main process which will create two sub processes(named process1 and process2) concurrent run,

    process1 and process2 execute the same action to call getservbyname(),

    and process1 is success, process2 is failed with WSANO_DATA (11004).

    BTW, the "%SystemRoot%\System32\drivers\etc\services" is OK.

    and if I call getservbyname() serially, there is no problem.

    Is there a lock when getservbyname() executing?

    even I restart the system and update the OS  to the newest version, the issue still remains.


    • Edited by Freedom1177 Friday, December 20, 2013 2:01 AM
    Friday, December 20, 2013 2:00 AM

Answers

  • You are posting in the wrong forum.  You want to post in one of the developers forums.

    No.  There is no lock.  Post your code in the VB, C# or C++ forum.


    ¯\_(ツ)_/¯


    • Edited by jrv Friday, December 20, 2013 2:36 AM
    • Marked as answer by Freedom1177 Friday, December 20, 2013 5:47 AM
    Friday, December 20, 2013 2:36 AM

All replies

  • You are posting in the wrong forum.  You want to post in one of the developers forums.

    No.  There is no lock.  Post your code in the VB, C# or C++ forum.


    ¯\_(ツ)_/¯


    • Edited by jrv Friday, December 20, 2013 2:36 AM
    • Marked as answer by Freedom1177 Friday, December 20, 2013 5:47 AM
    Friday, December 20, 2013 2:36 AM
  • Oh, thank you.

    But I can't find the VB, C# or C++ forum or a similar in left Forum category,

    Could you please give me a link?

    • Edited by Freedom1177 Friday, December 20, 2013 5:36 AM
    Friday, December 20, 2013 3:31 AM
  • I transferred the question to c++ forum and close it.

    Friday, December 20, 2013 5:53 AM
  • I transferred the question to c++ forum and close it.


    Thank you.

    ¯\_(ツ)_/¯

    Friday, December 20, 2013 5:55 AM