SupportBuyTry
BCGSoft: Forums
BCGSoft: Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 BCGControlBar Forums
 BCGControlBar Bugs and Problems
 Gorgeous bug in CBCGMenuButton!
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Red XIII

32 Posts

Posted - 04/17/2002 :  8:02:23 PM  Show Profile  Reply with Quote
This problem presence only in 5.81 and 5.82 versions of BCGControlBar. Version 5.8 CBCGMenuButton works right.

SYMPTOMS

1. Launch the BCGControls Example (release version);
2. Activate the menu button in right top corner of "BCGControls Example" dialog. Popup menu will appear;
3. Click any other controls, like color button, standard button, standard comboboxes (except slider, BCGButton, CBCGUrlLinkButton and checkboxes) inside the dialog window WITHOUT closing the popup menu. So, just click the "OK" button;
4. Application completely "frozen". No message processing. User cann't close the window and overflow by fury.

P.S. Debug version works correctly.

alex

48 Posts

Posted - 04/19/2002 :  05:57:40 AM  Show Profile  Reply with Quote
Actually things are not quite like that.

1. Application freezes. Bringing up Task Manager in Win2k one can see that the CPU is up to 100% which in most is an infinite loop problem. Sometimes after about a minute the infinite loop will break and the application is back on track. Also, sometimes the End Process button will free CPU resources.

Anyway it looks to be a seriuos problem with the CBCGMenuButton.

Best regards,
Alexandru Săvescu
Go to Top of Page

Support

2572 Posts

Posted - 04/19/2002 :  1:08:38 PM  Show Profile  Visit Support's Homepage  Reply with Quote
Many thanks for the bug report! To solve the problem, please make the following change in the library source code (we'll add this fix into the source code too):

File BCGContextMenuManager.cpp

[246] while (::PeekMessage (&msg, NULL, 0, 0, PM_REMOVE))
[247] {
[248] if (!::IsWindow (hwndMenu)) // ADD THESE 4 lines
[249] {
[250] break;
[251] }


Sincerely yours



BCGSoft Technical Support
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
BCGSoft: Forums © Copyright (c) 1998-2010 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000
Copyright © 1998-2008 BCGSoft CO Ltd. All rights reserved. Terms of Use | Privacy Statement
Microsoft, Visual C++, Visual Studio, Visual Studio.NET, Outlook, Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. All other trademarks are the property of their respective owners.
Design by Web-Master.spb and Creativemind