[Environment]
OS: 64bit Win7
[Symptom]
'Select COM Object' dialog runs indefinitely and bombs if cancelled.
[Repro Steps]
1. Click 'Actions' tab > click 'New' button
2. 'New Action' dialog opens > select 'Custom handler' from drop down list
3. Click the button next to the 'COM Object'
4. 'Select COM Object' dialog opens
5. select any object > click 'OK' /'Cancel' button
Exception details:
This BackgroundWorker states that it doesn't support cancellation. Modify
WorkerSupportsCancellation to state that it does support cancellation.
-------------------------- Technical Information Follows
--------------------------
Exception Details:
----------------------------------------
Exception type: System.InvalidOperationException
Message: This BackgroundWorker states that it doesn't support
cancellation. Modify WorkerSupportsCancellation to state that it does support
cancellation.
Source: System
Target Site: CancelAsync
Stack Trace:
at System.ComponentModel.BackgroundWorker.CancelAsync()
at
Microsoft.Win32.TaskScheduler.ComObjectSelectionDialog.okButton_Click(Object
sender, EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button,
Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)