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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Working...
    X