Unhandled Win32Exception when showing IntelliPrompt ToolTip

SyntaxEditor for Windows Forms Forum

Posted 16 years ago by Charles Weld
Version: 4.0.0275
Platform: .NET 2.0
Environment: Windows Vista (32-bit)
Avatar
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.

Comments (2)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Charles,

Can you put together a tiny sample project that repros this and email it over so that we can debug with it to ensure we look at the right thing? Thanks!


Actipro Software Support

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Charles,

Thanks for the repro. We found the issue and have it fixed. The bad news is that it is a WinUICore change, which means it will require rebuilding and re-releasing of all WinForms products. So it may take some more time than usual to roll out.


Actipro Software Support

The latest build of this product (v24.1.0) was released 5 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.