Print Page | Close Window

Application freeze with ComboBoxes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=15304
Printed Date: 23 November 2024 at 2:45am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Application freeze with ComboBoxes
Posted By: daniel_r
Subject: Application freeze with ComboBoxes
Date Posted: 06 October 2009 at 10:42am
Hello everybody,

I've found a weird bug with the CodeJock ComboBoxes which freezes the whole application.

I'm using the ActiveX version with VB6.

You can reproduce the problem with these steps:
  1. Create a new application and add the necessary CodeJock references
  2. Add two ComboBoxes to the form and set their appearance to Office 2007 (helps later)
  3. Add a ProgressBar and set Scrolling to Marquee (helps later)
  4. Add a PushButton or a standard CommandButton to the form
  5. Assign a mnemonic to the caption, so you can trigger the button using, let's say, Alt+O
  6. Add a MsgBox call to the Click handler of the button
  7. Run the application
  8. Now focus the first ComboBox by clicking on it and move the mouse cursor on top of the second one
  9. If you did everything right, both ComboBoxes should be highlighted (only visible with Office2007 appearence) and the ProgressBar should be scrolling
  10. Now take your hand away from the mouse (Very important)
  11. Press Alt+O so the message box appears
  12. Still, don't move the mouse!
  13. Now the application is frozen: The ProgressBar has stopped and the messagebox cannot be closed via keyboard. Also no painting happens (Not noticable with this small demo, but try Alt-Tabbing back and forth, there's no repaint. Even the VB6 IDE is frozen)
  14. To get the application going again, you have to move the mouse cursor away from the second ComboBox
  15. As soon as it leaves the bounds of the combobox everything works again

Here are some other facts I gathered:
  • The problem exists in CodeJock 13.0 and 13.1
  • It exists on at least four different workstations (WinXP and Vista)
  • The control appearence doesn't affect this
  • The problem exists when starting from the IDE and from the compiled .exe file
  • The problem does not occour when the combobox has the list style, i.e. it has to be editable to product this bug

I've spent 6 full hours to finally figure this out, and most likely my boss will not be very happy with that.
Please help me, so I can tell him, it wasn't for nothing :)

Perhaps this can be circumvented or - even better - there's already a fix for it.

Thank you in advance,
Daniel

EDIT: It's not necessary to have two comboboxes. It's sufficient, if the mouse hovers over a combobox, regardless of any other controls in the form.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net