Announcement

Collapse
No announcement yet.

about C ActiveX Sample on eSignal shared server

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

  • about C ActiveX Sample on eSignal shared server

    Hi,

    i download the "C ActiveX Sample.zip C++ Sample " and tried to execute it, but i have some problem when i try to close the sample application:

    if i click the "Exit" button, but got a error:
    the instruction at "0x7c283520" referenced memory at "0x00000004". the memory could not be "read"


    if i click X on the right top of the dialog, i got the eSignal Crash.

    i found in the source code
    void MainDialog::OnExit()
    {
    this->~MainDialog();
    }

    but no EndDialog(), but when i add CDialog::EndDialo (IDCANCEL) as:
    void MainDialog::OnExit()
    {
    this->~MainDialog();
    CDialog::EndDialog(IDCANCEL);//bing
    }
    got an error :
    Debug Assertion Failed!
    File: dlgcore.cpp
    Line: 563

    Please help me for this question, thanks so much

  • #2
    Yes, I came across this myself and thought I described in a previous post, but can't find it. It has already been corrected, but I was not able to include it for the 7.8 release. It will be available in the next version of eSignal (7.9 Beta).

    Comment


    • #3
      Pls. help for the C++ sample issue

      Error for using eSignal Desktop API

      Hi,

      Thanks for your reply. Well although it is only an example, but it showed the programmers who just started using eSignal Desktop API the way to use these APIs. So I think it would be better the example is correct and stable. So we can follow it.

      My first question is what you mean the 7.9 release. I was not talking about using the eSignal, I was asking the "C ActiveX Sample.zip C++ Sample ". what I am trying to do is to run this sample and read the source codes to figure out how to use APIs with C++ and MFC. Do you mean I can find the another more correct "C ActiveX Sample.zip C++ Sample” but not the one on the Shared server?

      When I was running the "C ActiveX Sample.zip C++ Sample”, sometimes I got crash. The following is the crash log, but the problem is the crash happened occasionally and the crash log message is also different sometimes.

      Connection to server established ....... [status=0]
      Connection to server established ....... [status=0]
      Connection to server established ....... [status=0]
      Received DBCAPI_NOTIFY_HIST_RESPONSE for symbol $INDU
      Finished processing DBCAPI_NOTIFY_HIST_RESPONSE for $INDU
      Received Bar Response ....... [status=0,0]
      Received Bar Response ....... [status=0,0]
      Received Bar Response ....... [status=0,0]
      Received Bar Response ....... [status=0,0]
      Received DBCAPI_NOTIFY_HIST_RESPONSE for symbol $INDU
      Finished processing DBCAPI_NOTIFY_HIST_RESPONSE for $INDU
      Received Bar Response ....... [status=0,0]
      Received Bar Response ....... [status=0,0]
      Crash at 16:13:01 - 0x0801FD55

      **** could you tell me if I can find the most correct c++ sample, so I can follow it to develop my c++ program, and it wont be crashing a lot.

      Thanks so much

      Comment


      • #4
        I was responding to your issue regarding crash on exit. This issue with the API has been addressed and will a part of eSignal 7.9. It is just a sample, so not all cases are covered.

        As far as crashes, here is a post about some coding practices:

        Comment

        Working...
        X