Application crash when launching a Windows Form dialog from third party components.

Application crash when launching a Windows Form dialog from third party components.

book

Article ID: KB0076784

calendar_today

Updated On:

Products Versions
Spotfire Developer 7.0 and Higher

Description

If the forms component launches a dialog using Show/ShowDialog without providing an owner parameter, the application may crash if the current active window is TransparentBrowser.

Issue/Introduction

Application crash when launching a Windows Form dialog from third party components.

Resolution

This is handled for any scenario from within the application (owner is provided where needed) in version 7.0. However, this may be an issue for 3rd party components, such as when launching via the context menu in a tabular plot. Partners and other 3rd party developers need to specify an owner when launching a Windows Form dialog.
 

Use the override with a window when using either of these methods:

Form.Show(IWin32Window) Method

Form.ShowDialog Method
 

Additional Information

http://msdn.microsoft.com/en-us/library/System.Windows.Forms.Form.Show(v=vs.110).aspx

http://msdn.microsoft.com/en-us/library/System.Windows.Forms.Form.ShowDialog(v=vs.110).aspx