Main menu display issue

Hi,

I have a problem with LN 8.5.1 FP3. Our team develops LN add-in using c++ way and the add-in customizes Action main menu with few menu items. Each time when user opens Action menu the add-in checks context and updates enabled state of the menu items.

The problem is that LN does not shows menu if add-in performs queries to database (to detect the context), but all required data is successfully retrieved. When I disable the queries to database Action menu is shown with add-ins menu items.

Such behavior is reproducible only on Win7 and LN 8.5+.

Those queries to db are:

  • Current view name;

  • Is view is folder.

Does anybody know anything about the issue?

Thank you,

  • Artem.

Subject: Fixed. Solution inside.

There was conflict between two addins which was used for communication with LN. Those addins are extension manager and menu add-in. The problem was in call order. You see, LN can ping your application from two addins at the same time. Therefore there was some resources conflicts in my code.