Announcement

Collapse
No announcement yet.

Exception with onquote change

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

  • Exception with onquote change

    Hi,

    any ideas why I get the following exception with OnQuoteChanged callback method.

    For me, it is a very strange error, because HookClass implements
    IHooks interface and the first N times all goes Ok.

    --------------------------
    System.InvalidCastException: Unable to cast COM object of type
    'IESignal.HooksClass' to interface type 'IESignal.IHooks'.
    This operation failed because the QueryInterface call on the COM
    component for the
    interface with IID '{C5916B45-A7EB-4919-A742-AD47AE3AE996}' failed due
    to the following error: System call failed. (Exception from HRESULT:
    0x80010100 (RPC_E_SYS_CALL_FAILED)).
    at IESignal.HooksClass.get_GetBasicQuote(String sSymbol)

  • #2
    Hi,

    I also get this error from time to time.
    I tried to 'google' it, but without results.

    I use eSignal API 7.9.1, .NET 2.0, WinXP Pro

    Comment


    • #3
      A System Call Failure is usually the result of a failed call from an application (any application) to the kernel. This could happen because the application is starved for resources. (There may be other reasons, but this is a common one.)

      We have seen this error more frequently with the Visual Studio 2005 dev environment, so there may be an issue with the way it manages resources.

      Comment


      • #4
        I am facing the same problem. does adding a delay in 'esignal_OnQuoteChanged' mehtod helps?

        Comment


        • #5
          [i]
          We have seen this error more frequently with the Visual Studio 2005 dev environment, so there may be an issue with the way it manages resources. [/B]
          Please suggest a solution to this problem.

          Comment


          • #6
            Visual Studio 2005 is not supported, primarily because of this error. Most developers using this IDE experience this problem. We support VS 2003 and 2008.

            Comment


            • #7
              eSignal dll for VS 2003

              From where I can find the eSignal dll file (Interop.IESignal.dll) for VS 2003.

              I did not find the version for VS2003.

              Comment


              • #8
                Systrade2Forum

                Which of the eSignal API's are you currently using?

                Thanks in advance,

                Comment


                • #9
                  We are using DesktopAPISample2 for Qoutes receiving.

                  Comment


                  • #10
                    DesktopAPISample2 Sample was created for VS2008 and can not be used in VS2003.

                    Please referencing winsig.exe for your project in VS2003.

                    Comment


                    • #11
                      Originally posted by eSignal_AveryH
                      DesktopAPISample2 Sample was created for VS2008 and can not be used in VS2003.

                      Please referencing winsig.exe for your project in VS2003.
                      I have migrated to .net 3.5 as per your recommendation, and still getting the same problem, though less frequently, but i want to solve it.

                      Comment


                      • #12
                        When I was using Excel 2007 to grab time and sales, I sometimes got a similar error:

                        Run-time error -2147417856 (80010100)
                        Automation error
                        System call failed

                        The number in the parenthesis is the same as the one provided by the OP.

                        It didn't happen with OnTimeSalesChanged (because I never could get that event handler to work in Excel), but it did happen sporadically with RequestTimeSales and GetNumTimeSalesRtBars.

                        I knew I was pushing my system pretty hard, so, when I got the error, I assumed it was because of that. For me, I think it was like Starr said, my system was starved for resources. I used a work-around until I finally got my VS 2008 installed (last weekend) and I haven't seen the error again (or yet) using VB, even with OnTimeSalesChanged -- probably because I now have Excel out of the way.

                        George

                        Comment


                        • #13
                          systrade2Forum,

                          We apologize for the inconvenience when are you seeing this error? I'm running the same sample and have not been able to duplcate the error yet.

                          Have you made code changes to the sample to better fit you needs?

                          Comment


                          • #14
                            Originally posted by eSignal_AveryH
                            systrade2Forum,

                            We apologize for the inconvenience when are you seeing this error? I'm running the same sample and have not been able to duplcate the error yet.

                            Have you made code changes to the sample to better fit you needs?

                            Please see the attached error screen shot and following line of code.





                            public Form1()

                            {

                            esignal = new IESignal.Hooks();

                            esignal.OnQuoteChanged += new IESignal._IHooksEvents_OnQuoteChangedEventHandler( esignal_OnQuoteChanged);

                            esignal.SetApplication(Settings1.Default.eSignalUs erID);// '"<ENTER YOUR USERNAME HERE>")

                            esignal.RequestSymbol(Settings1.Default.SymboleSig nal, 1);

                            }





                            private void esignal_OnQuoteChanged(string sSymbol)

                            {

                            if (sSymbol == Settings1.Default.SymboleSignal)

                            {

                            try

                            {

                            IESignal.BasicQuote quote = default(IESignal.BasicQuote);

                            quote = esignal.get_GetBasicQuote(sSymbol); //Exception is being raised on this line

                            WriteToFile("FLUSFeedLog", DateTime.Now, "", "", "||" + quote.dBid.ToString() + ":" + quote.dAsk.ToString());

                            }

                            catch (Exception ex)

                            {

                            MessageBox.Show(ex.ToString());

                            }

                            finally

                            {

                            }

                            }

                            }
                            Attached Files

                            Comment


                            • #15
                              Stumbled across this post from about six months ago -- someone getting the same exception using eSignal and IB and solving their issue. Will provide it FWIW. May or may not give you any ideas that will help solve your issue.



                              George

                              Comment

                              Working...
                              X