Using Analytics Monitor in Delphi

5 posts, 0 answers
  1. Guest
    Guest avatar
    506 posts
    Member since:
    Feb 2012

    Posted 13 May 2013 Link to this post

    Hi I am attempting to integrate Eqatec Analytics Monitor into a Delphi application but am experiencing some difficulty. I registered the COM facade dll and created a tlb file, which I then imported into the Delphi environment. I then placed the TAnalyticsMonitorCOM component onto a form and added this code to the pas file: mon.InitializeMonitor('11CE4B479E1E422287EFB003C68C9A1D', IntToStr(_RostBuild),''); mon.Start(); mon.sendlog('Hi'); mon.Stop(); The code builds and runs, but the dashboard does not seem to be receiving any data. When inspecting the value of mon.GetMonitorInfo, the line 'Initialized: False' appears throughout execution, implying that the InitializeMonitor method is failing for some reason. Can you suggest anything that I may be missing for the monitor to perform correctly? Thank you for your time and assistance. Andrew
  2. Guest
    Guest avatar
    506 posts
    Member since:
    Feb 2012

    Posted 13 May 2013 Link to this post

    Hi Andrew I suggest you take a look at the following article: http://support.eqatec.com/entries/20953498-Troubleshooting Using this article you should be able to get a better feel for e.g. whether or not data is transmitted to our servers etc. Let me know if you need further assistance /Soren EQATEC Team
  3. Guest
    Guest avatar
    506 posts
    Member since:
    Feb 2012

    Posted 13 May 2013 Link to this post

    Hi, Soren. Thanks for your reply. I checked the article you pointed me to and none of the solutions worked. I turned on logging and that confirmed what I suspected - that the InitializeMonitor method is failing. The application calls InitializeMonitor, which returns false, then after calling Start() a log is sent to the event listener which reads "Initialize not called" I have thoroughly inspected all of the documentation and cannot find a solution, however with there being no Delphi specific examples I cannot be sure that I haven't missed something in the process I described earlier.
  4. Guest
    Guest avatar
    506 posts
    Member since:
    Feb 2012

    Posted 13 May 2013 Link to this post

    Hi Andrew and sorry for the delayed reply Well, from your description it seems that something is not right with your call to InitializeMonitor since it returns false. I've looked into the InitializeMonitor logic and there are a few conditions that could trigger the method to return false. From your code sample I will venture a guess and say that it is a problem with the version parameter. The version argument should have at least two parts (i.e. "1.2") and can have up to four parts (i.e. "1.2.3.4"). You should use '.' as the separator. When the method returns true, you should be good to go. Hope this helps /Soren EQATEC Team
  5. Guest
    Guest avatar
    506 posts
    Member since:
    Feb 2012

    Posted 13 May 2013 Link to this post

    That was it exactly. I was not aware that the parameter required a full stop. It seems to be working just fine now. Thanks a lot for your help in this matter. Regards, Andrew
Back to Top