ICMP Ping example running problem
Hi all, When i run *ping.cpp * at .\boost_1_53_0\doc\html\boost_asio\example\icmp, it comes with the error message: "Exception: open: An attempt was made to access a socket in a way forbidden by its access permissions". Debug shows that it comes from calling ",* socket_ (io_service , icmp::v4() )*" in the constructor. Google says the running computer must have administrator right, i do have it. i also checked my firewall settings, it looks fine to me also. Does anyone can give a help? Thanks, -shunguang -- View this message in context: http://boost.2283326.n4.nabble.com/ICMP-Ping-example-running-problem-tp46514... Sent from the Boost - Users mailing list archive at Nabble.com.
Am Wed, 11 Sep 2013 12:09:39 -0700 (PDT)
schrieb shunguang
Hi all,
When i run *ping.cpp * at .\boost_1_53_0\doc\html\boost_asio\example\icmp, it comes with the error message: "Exception: open: An attempt was made to access a socket in a way forbidden by its access permissions".
Hi, did you try (right click) "run as administrator"? Stefan
Hi Stefan, You solved my problem! Thank you very much. -Shunguang -- View this message in context: http://boost.2283326.n4.nabble.com/ICMP-Ping-example-running-problem-tp46514... Sent from the Boost - Users mailing list archive at Nabble.com.
Am Thu, 12 Sep 2013 06:01:17 -0700 (PDT)
schrieb shunguang
Hi Stefan,
You solved my problem! Thank you very much.
-Shunguang
Great! If you're on command line you can also use the "runas" command with the administrator credentials to call your program, see: http://technet.microsoft.com/en-us/library/bb490994.aspx Stefan
Right. Additionally, to "run as administrator" during the debug process in VS, we need to run visual studio as " an Elevated Shortcut". The following link tells how to set it. http://www.sevenforums.com/tutorials/11949-elevated-program-shortcut-without... I tried the approach, it works! Hope these discussion will be helpful for others. Thanks again. -shunguang -- View this message in context: http://boost.2283326.n4.nabble.com/ICMP-Ping-example-running-problem-tp46514... Sent from the Boost - Users mailing list archive at Nabble.com.
participants (2)
-
shunguang
-
Stefan Schweter