We use the following code to load custom menus:
SBO_Application.LoadBatchActions(ref s_xml);
It has allways worked fine but if we set two or more of our addons to start automatically SAP loads their menus randomly...
For example having three addons in automatic in each start made the following:
-1º Start: Addon1Menu, Addon2Menu loaded.
-2º Start: Addon2Menu, Addon3Menu loaded.
-3º Start: Addon2Menu, Addon3Menu loaded.
-4º Start: Addon1Menu, Addon2Menu, Addon3Menu loaded.
Having two addons in automatic does the same...
It rarely loads all the menus...there isnt any errors and the addons are shown as connected and work fine...only their menus are missing....
It seems the addons started last tend to load most of the time versus the first one
In case it has something to do with it the addons menus are created under our own menu categorie...but the xmls use the update action to modify this root menu...if we start the addons manually all the menus load correctly...