Announcement

Collapse
No announcement yet.

GetBar , Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • GetBar , Error

    setup everything correctly, getting current quote feed now. in getting history data I am having a problem.

    Setup the request, works.
    setup the getnumbars ; works.
    check ishistoryready ; returns true

    run the loop to read the data, I get

    GetBar Failed (c0000005) error


    Andy
    Andy Stapleton

  • #2
    Hello Andy,

    What programming language are you using? What are the arguments you passed to the getBar function call?

    Here is a VB code snippet:

    Dim lNumBars As Double
    Dim j As Long
    Dim baritem As IESignal.BarData

    'Find out how many bars were returned
    lNumBars = esignal.GetNumBars(historyHandle)

    'Set the above number to its inverse for a decremented loop
    lNumBars = lNumBars * -1

    For j = lNumBars + 1 To 0

    'Retrieve the BarData data structure
    baritem = esignal.GetBar(historyHandle, j)
    ...
    ...

    Anthony

    Comment


    • #3
      I am using a language called clarion, I am going to switch to a different language...

      the tic feed will run for 20-30 minutes then hang and crash, so it isn't stable with that language.

      have you or know someone that uses C# on it?

      andy
      Andy Stapleton

      Comment


      • #4
        Hello Andy,

        Visual Basic is the most commonly used language for the eSignal Desktop API.

        You might want to consult with other forum users for their feedback and experience with C#.

        Best Regards,
        Anthony
        eSignal Developer Support

        Comment


        • #5
          Hello Andy,

          Visual Basic is the most commonly used language for the eSignal Desktop API.

          You might want to consult with other forum users for their feedback and experience with C#.

          Best Regards,
          Anthony
          eSignal Developer Support

          Comment


          • #6
            I've done some work with the API using C#. No problems to report.

            Cheers... George

            Comment


            • #7
              would you mind sharing some example code?

              I am using sharp developer and it has issues with references, now I just downloaded the new MS C# developer but working through it...

              I am a newbie with C#, but made a rule years ago to avoid VB<g> so off I go..

              andy
              Andy Stapleton

              Comment


              • #8
                There is an old C# example in the File Sharing section...



                Specifically the poorly named Multiple History Requests in VB.zip. I'm not sure why I tagged "VB" at the end of the file name, other than I had been messing with VB samples as well at the time.

                Cheers... George

                Comment


                • #9
                  brought it down and installed, changed the quotes to match the forex I wanted, no data.

                  either the event is not firing or no data is getting done.

                  andy
                  Andy Stapleton

                  Comment


                  • #10
                    never mind, just literaly took 2-3 minutes to start..

                    thanks

                    andy
                    Andy Stapleton

                    Comment

                    Working...
                    X