<div dir="ltr">I'm trying out a simple <a href="http://OTP.NET">OTP.NET</a> test and it works great for the first call, but any subsequent calls result in the following exception:<div><br></div><div><div>System.IO.IOException was unhandled</div>
<div>  Message="Peer replied with status 'alive' instead of 'ok'"</div><div>  Source="Otp"</div><div>  StackTrace:</div><div>       at Otp.AbstractConnection.recvStatus() in C:\Documents and Settings\Administrator\Desktop\jungerl\lib\<a href="http://otp.net">otp.net</a>\Otp\AbstractConnection.cs:line 1455</div>
<div>       at Otp.AbstractConnection.doConnect(Int32 port) in C:\Documents and Settings\Administrator\Desktop\jungerl\lib\<a href="http://otp.net">otp.net</a>\Otp\AbstractConnection.cs:line 1018</div><div>       at Otp.AbstractConnection..ctor(OtpLocalNode self, OtpPeer other) in C:\Documents and Settings\Administrator\Desktop\jungerl\lib\<a href="http://otp.net">otp.net</a>\Otp\AbstractConnection.cs:line 226</div>
<div>       at Otp.OtpConnection..ctor(OtpSelf self, OtpPeer other) in C:\Documents and Settings\Administrator\Desktop\jungerl\lib\<a href="http://otp.net">otp.net</a>\Otp\OtpConnection.cs:line 84</div><div>       at Otp.OtpPeer.connect(OtpSelf self) in C:\Documents and Settings\Administrator\Desktop\jungerl\lib\<a href="http://otp.net">otp.net</a>\Otp\OtpPeer.cs:line 67</div>
<div>       at ErlTestClient.Form1.button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\Administrator\My Documents\Projects\ErlTestClient\ErlTestClient\Form1.cs:line 25</div><div>       at System.Windows.Forms.Control.OnClick(EventArgs e)</div>
<div>       at System.Windows.Forms.Button.OnClick(EventArgs e)</div><div>       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)</div><div>       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)</div>
<div>       at System.Windows.Forms.Control.WndProc(Message& m)</div><div>       at System.Windows.Forms.ButtonBase.WndProc(Message& m)</div><div>       at System.Windows.Forms.Button.WndProc(Message& m)</div>
<div>       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)</div><div>       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)</div><div>       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</div>
<div>       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)</div><div>       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)</div>
<div>       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)</div><div>       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)</div>
<div>       at System.Windows.Forms.Application.Run(Form mainForm)</div><div>       at ErlTestClient.Program.Main() in C:\Documents and Settings\Administrator\My Documents\Projects\ErlTestClient\ErlTestClient\Program.cs:line 17</div>
<div>       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)</div><div>       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)</div><div>       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()</div>
<div>       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)</div><div>       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)</div><div>
       at System.Threading.ThreadHelper.ThreadStart()</div><div><br></div><div><br></div><div>You can view my source at <a href="http://paste.lisp.org/display/67861">http://paste.lisp.org/display/67861</a> and <a href="http://paste.lisp.org/display/67862">http://paste.lisp.org/display/67862</a> </div>
<div><br></div><div>Erlang is v5.6.3 on windows and I'm running VS2005.</div><div><br></div><div>Please help :)</div></div></div>