I'm a software tester. My recent task is to test the exposed methods of our C# server which is using WCF as communication layer.
I wrote a piece of C# code to tets our server. for one of the test, I had to test whether the server is throwing up AddressAlreadyUsed exception when multiple instance of the server is started up.
Ex, my pseudocode
while(till count reaches a limit)
{
Process.Start("server info);
}
During the execution, many instance of the server was started up and it throwed AddressAlreadyUsed exception as expected. But, for some server instance it throwed up an AccessViolation exception.
ex code
21-Jul-2009 15:26:32.71 Error: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at sFabServer.returnEntry(sFabServer* , sTString<char>* )
at SSM.BCT.Legacy.FabServerConfig.ReturnEntry(String name)
at SSM.BCT.ProcessServer.Server.ServerContext..ctor(P rocessServerConfig config,
Can any one let me know why this was thrown up and is there any un-safe code/thread in the server that spaned up but not killed?