shawnj
11-10-2008, 04:19 PM
I'm attempting to implement .net's remoting in an indicator and I'm stuck at the very beginning.
I've added the reference:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Syst em.Runtime.Remoting.dll
And my code:
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
protected override void Initialize()
{
try
{
TcpChannel c = new TcpChannel(32469);
}
catch(Exception ex)
{
Print(ex.Message);
}
}
When I open the Indicators Dialog, I get the following Error message printed in the Output window:
"Only one usage of each socket address (protocol/network address/port) is normally permitted"
I've tried a bunch of different port numbers so I'm pretty sure that is not the problem.
Creating and registering (not show here) a channel is basically the first step in implementing a remoting server. I'm guessing this is clashing with something in NinjaTrader.
Has anyone been able to get remoting working in an indicator? Any thoughts on how to proceed to troubleshoot/workaround this error?
I'm trying to use remoting to workaround the NT6.5 limitation of not being able to utilize multiple data series from an indicator.
thanks,
shawnj
I've added the reference:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Syst em.Runtime.Remoting.dll
And my code:
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
protected override void Initialize()
{
try
{
TcpChannel c = new TcpChannel(32469);
}
catch(Exception ex)
{
Print(ex.Message);
}
}
When I open the Indicators Dialog, I get the following Error message printed in the Output window:
"Only one usage of each socket address (protocol/network address/port) is normally permitted"
I've tried a bunch of different port numbers so I'm pretty sure that is not the problem.
Creating and registering (not show here) a channel is basically the first step in implementing a remoting server. I'm guessing this is clashing with something in NinjaTrader.
Has anyone been able to get remoting working in an indicator? Any thoughts on how to proceed to troubleshoot/workaround this error?
I'm trying to use remoting to workaround the NT6.5 limitation of not being able to utilize multiple data series from an indicator.
thanks,
shawnj