Delay (high CPU) after opening dialog
Posted: Sat Aug 09, 2014 12:42 am
I am not sure if this is a feature of wxWidgets or Codelite...
On Windows 8.1 (64 bit) and using Codelite version 6.0 there is a delay of several seconds after opening certain dialogs from the menu.
When this happens, CPU usage on 1 core goes to 100% and according to VerySleepy it is being caused by RegSetValueExW. It happens on at least these menus:
File->Open...
Workspace->New...
Workspace->Open...
Build->Configuration Manager...
So it isn't just built-in dialogs but custom ones too.
Note this does not happen with the tool bar buttons, only the menu entries.
I noticed it because I was having exactly the same problem with my application. It seems to be caused by having an ID of wxID_ANY for the menu entry, changing it to anything else and the problem disappears.
On Windows 8.1 (64 bit) and using Codelite version 6.0 there is a delay of several seconds after opening certain dialogs from the menu.
When this happens, CPU usage on 1 core goes to 100% and according to VerySleepy it is being caused by RegSetValueExW. It happens on at least these menus:
File->Open...
Workspace->New...
Workspace->Open...
Build->Configuration Manager...
So it isn't just built-in dialogs but custom ones too.
Note this does not happen with the tool bar buttons, only the menu entries.
I noticed it because I was having exactly the same problem with my application. It seems to be caused by having an ID of wxID_ANY for the menu entry, changing it to anything else and the problem disappears.