Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problems adding workspace support to AddOn

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

    Problems adding workspace support to AddOn

    So my AddOn is almost done, the last thing I wanted to add was support for saving/loading in the workspaces.

    I have followed the docs/examples and when I save the workspace I can see my AddOn and its settings being added to the XML and all looks good.

    However when I try to load that workspace I just get a load of spinning windows, then I have to kill Ninja using the TaskManager.

    My AddOn has two tabs only, which share settings, so I have made the settings be owned by the AddOn's Window instead of the tabs themselves,
    and I have saved/loaded the settings fields in the Save/Restore methods on the AddOn's Window class.

    The settings fields really are simple, just bools and strings, nothing complicated, but I still can't get the AddOn to load from the workspace.

    As soon as I remove all the workspace code, everything works fine.

    Are there any common causes that might trigger the spinning windows?

    Are there any further examples of AddOn integration with workspaces?

    #2
    I got this sorted eventually.

    I had some code that was looping over the open charts looking for charts with a specific indicator, and this was getting called while the workspace was loading, which Ninja didn't agree with.

    Saving/restoring workspace is now working after removing that code.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    335 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    211 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    196 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    287 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    245 views
    0 likes
    Last Post CarlTrading  
    Working...
    X