Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Application freeze with ComboBoxes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Application freeze with ComboBoxes

 Post Reply Post Reply
Author
Message
daniel_r View Drop Down
Groupie
Groupie


Joined: 06 October 2009
Location: Germany
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote daniel_r Quote  Post ReplyReply Direct Link To This Post Topic: Application freeze with ComboBoxes
    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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.