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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    596 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X