The following code does not work for me in Windows 2008. It succeeds in Win7.
return new Semaphore(1, 1, "my-test-semaphore");
I get the following error:
System.IO.IOException: The specified port does not exist.
at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.InternalResources.WinIOError()
at System.Threading.Semaphore..ctor(Int32 initialCount, Int32 maximumCount, String name)
at Throttle.Program.CreateSemaphore(String passthroughApplication)
at Throttle.Program.Main(String[] args)
I searched and cannot find an explanation. Does anyone have any idea?
source
share