Posted 16 years ago
by Charles Weld
Version: 4.0.0275
Platform: .NET 2.0
Environment: Windows Vista (32-bit)
Hi,
A Win32Exception is being raised when trying to display a IntelliPrompt Tooltip using a floating ToolWindow containing a SyntaxEditor control.
To reproduce:
1. In a floating window, display the tooltip for the SyntaxEditor (hover over one of the variables).
2. Dock the ToolWindow
3. Try to display the tooltip again.
Error detail:
Type: Win32Exception
Message: Error creating window handle.
Stack trace:
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at ActiproSoftware.WinUICore.PopupControl.SetVisibleCore(Boolean visible)
at System.Windows.Forms.Control.Show()
at ActiproSoftware.WinUICore.PopupControl.ShowPopup(Control owner, Boolean activate)
at ActiproSoftware.SyntaxEditor.IntelliPromptQuickInfo.Show(Point location, String markupText)
at ActiproSoftware.SyntaxEditor.EditorView.OnMouseHover(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIElement.ActiproSoftware.WinUICore.IInputElement.RaiseMouseHoverEvent(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIControl.OnMouseHover(EventArgs e)
at System.Windows.Forms.Control.WmMouseHover(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
This appears to be a variant of the same issue described in the following bugs\posts:
• http://www.actiprosoftware.com/Support/Forums/ViewForumTopic.aspx?ForumTopicID=2659#9842
• http://www.actiprosoftware.com/Support/Forums/ViewForumTopic.aspx?ForumTopicID=1665#5918
• http://www.actiprosoftware.com/Support/Forums/ViewForumTopic.aspx?ForumTopicID=3053 [my initial query relating to the tooltip problem].
In my previous case we managed to fix the problem by implementing our own ToolTip component that doesn’t rely on the underling form staying the same.
A Win32Exception is being raised when trying to display a IntelliPrompt Tooltip using a floating ToolWindow containing a SyntaxEditor control.
To reproduce:
1. In a floating window, display the tooltip for the SyntaxEditor (hover over one of the variables).
2. Dock the ToolWindow
3. Try to display the tooltip again.
Error detail:
Type: Win32Exception
Message: Error creating window handle.
Stack trace:
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at ActiproSoftware.WinUICore.PopupControl.SetVisibleCore(Boolean visible)
at System.Windows.Forms.Control.Show()
at ActiproSoftware.WinUICore.PopupControl.ShowPopup(Control owner, Boolean activate)
at ActiproSoftware.SyntaxEditor.IntelliPromptQuickInfo.Show(Point location, String markupText)
at ActiproSoftware.SyntaxEditor.EditorView.OnMouseHover(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIElement.ActiproSoftware.WinUICore.IInputElement.RaiseMouseHoverEvent(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIControl.OnMouseHover(EventArgs e)
at System.Windows.Forms.Control.WmMouseHover(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
This appears to be a variant of the same issue described in the following bugs\posts:
• http://www.actiprosoftware.com/Support/Forums/ViewForumTopic.aspx?ForumTopicID=2659#9842
• http://www.actiprosoftware.com/Support/Forums/ViewForumTopic.aspx?ForumTopicID=1665#5918
• http://www.actiprosoftware.com/Support/Forums/ViewForumTopic.aspx?ForumTopicID=3053 [my initial query relating to the tooltip problem].
In my previous case we managed to fix the problem by implementing our own ToolTip component that doesn’t rely on the underling form staying the same.