Replies

bhoja
30 Oct 2013, 15:13

RE:

Can you confirm the memory release issue is still being looked at?  And that it hasn't been deployed?  Still seeing the issue, so wanted to check first.  Many Thanks.

Spotware said:

The fix for this will be released soon. Thank you for reporting it.

 


@bhoja

bhoja
21 Oct 2013, 18:19

RE: RE: RE: RE:

Hi there,

I tried your suggested solution, but I still get a compiler error.  Now I get System.Web version 4.0.0.0 assembly cannot be found.

Did you have a similar issue?

I've also tried to reference Framework v2 System.Data.  This compiles, but the Robot doesn't even start it's run and throw an Error #92946333.

Many Thanks.

 

lec0456 said:

pedrotduarte said:
lec0456 said:
lec0456 said:

I am trying to use the System.Data.SqlClient namespace but it gives me an error.  It says the namespace does not exist and asks if I am missing an assembly.

Do you know whats wrong?

 

Thats ok I figured it out!
Hi

 

I was having precisely the same issue as you. Could you share how you did it to make it work? And what database did you use?

 

Thanks

Sure, you need to add a reference to the .net assembly:

//#reference: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Data.dll

 

Then add the sql or oledb objects, depending if you are connecting to sql server or Ms Access:

using System.Data.SqlClient;
using System.Data.OleDb;

 

Everything else will be standard...

 

 


@bhoja

bhoja
24 Sep 2013, 19:12

RE: RE: RE:

I tried a few different combinations of code but none seem to be working for me.  I've attached the snippet of code.  Many Thnks.

     public class CustomClass
    {
        private cAlgo.API.Robot _Robot;

        public CustomClass(cAlgo.API.Robot robot)
        {
            _Robot = robot;
            Print(new string[1] 
            {
                "test"
            });
        }

         public void Print(string[] message)
        {
            BindingFlags eFlags = BindingFlags.InvokeMethod;
            MethodInfo mInfoMethod = typeof(cAlgo.API.Robot).GetMethod("Print", eFlags);
            mInfoMethod.Invoke(_Robot, message);
        }

    }

bhoja said:

Thanks for the quick reply.  I'll give it a whirl.

 

hichem said:

You can use reflection. Pass the current Robot or indicator as an argument to your class and use reflection to get to the Print Method. Affect it to a delegate, then call that delegate

 

bhoja said:

Hi there,

 

I've multiple custom classes which I need to test and check for errors.  The Print Command (cAlgo.API.Internals.Algo.Print) is protected, so I cannot Print to the Log.  Is there a way around this?

I wanted to keep the custom classes separate from the Robot inherited Class.

 

Many Thanks,

 

 

 


@bhoja

bhoja
24 Sep 2013, 18:24

RE: RE:

Thanks for the quick reply.  I'll give it a whirl.

 

hichem said:

You can use reflection. Pass the current Robot or indicator as an argument to your class and use reflection to get to the Print Method. Affect it to a delegate, then call that delegate

 

bhoja said:

Hi there,

 

I've multiple custom classes which I need to test and check for errors.  The Print Command (cAlgo.API.Internals.Algo.Print) is protected, so I cannot Print to the Log.  Is there a way around this?

I wanted to keep the custom classes separate from the Robot inherited Class.

 

Many Thanks,

 

 


@bhoja

bhoja
13 Nov 2012, 19:41

Hi there,

 

I was referring more to the Event OnBar, or is this the same as what you have referred to, ie. Tick Charts.

 

I was wondering whether an Event can be triggered at set time intervals, eg. every 20 secs - similar to the OnBar Event, but this specifically links in with the parameters of the Robot.

 

Regards,

Harry.


@bhoja