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 DannyP96, 05-18-2026, 02:38 PM
    1 response
    85 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    143 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    83 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    256 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    334 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X