Using ATL COM in NAV2009

Last post 10-12-2008 6:29 AM by Kine_. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-03-2008 3:25 AM

    Using ATL COM in NAV2009

    Hi All,

    I have my add-on integrated with NAV5.0 W1. The add-on is created using ATL COM component(unmanaged code). I am now trying to upgrade to NAV2009.

    The add-on works fine with NAV2009 Classic Client but not with Role Tailored Client.

    The transformation process is carried out successfully. But  when i run Role Tailored Client and try to access the integrated functionality, it crashes by closing the server connection.

    I have tried various alternatives but no luck.

    Does any one have an idea as to why Role Tailored Client fails to call the COM interface functions?

    Eg:-

    Codeunit : ApplicationManagement

    CompanyOpen()

    {      ..............

          WMI.Init()            //WMI --> Variable of type WM Interface

    Codeunit: WM Interface

    Init()

    { ............

       CREATE(WM)             //WM --> Automation variable of type ATL COM

      WM.Initialize(...)           //Initialize() --> COM Interface function

      ........

    Thanks,

    Hemant

  • 10-12-2008 6:29 AM In reply to

    • Kine_
    • Top 200 Contributor
    • Joined on 05-21-2008
    • Posts 5

    Re: Using ATL COM in NAV2009

     1) All Automations on NAV 2009 are running on the service tier and it means some limitations like no GUI, no HW interaction etc. Jus read the documentatiton.

     2) You can try to run the Automation on the RTC client by using the new second parameter of the CREATE funtion which will tell NAV to create the automation on the client. But,there are also some limitation for the automation and this can bebig problem...

Page 1 of 1 (2 items)