Hello,
I have a problem with the activation of DocumentWindow while several threads are running. I have a document taking a long time to load; so I load it in a separate thread.
- The first DocumentWindow is instanciated with the ctor()
- The first DocumentWindow creates a thread in the OnCreateControl() override and performs some load and initialization stuff
- Since my app UI is available I open a second DocumentWindow
- The second DocumentWindow is instanciated with the ctor()
- The second DocumentWindow performs on the same thread some initialization stuff on OnCreateControl() override
- The second DocumentWindow calls Activate(true)
=> then a NullReferenceException is thrown :
I have a problem with the activation of DocumentWindow while several threads are running. I have a document taking a long time to load; so I load it in a separate thread.
- The first DocumentWindow is instanciated with the ctor()
- The first DocumentWindow creates a thread in the OnCreateControl() override and performs some load and initialization stuff
- Since my app UI is available I open a second DocumentWindow
- The second DocumentWindow is instanciated with the ctor()
- The second DocumentWindow performs on the same thread some initialization stuff on OnCreateControl() override
- The second DocumentWindow calls Activate(true)
=> then a NullReferenceException is thrown :
ActiproSoftware.UIStudio.Dock.DockManager.b(TabbedMdiWindow A_0)
à ActiproSoftware.UIStudio.Dock.DocumentWindow.Activate(Boolean focus)
à sw7.sys.win.DocumentWindow`1.sw7.sys.win.IWindow.activate()