Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Loaden on November 13, 2010, 02:18:43 pm
-
This crash can reproduce.
step 1: Create a wxWidgets project with frame based, and using wxSmith.
step 2: Resources > wxFrame > Style, hit the "+" icon, and choice any option, like "wxCAPTION", e.g.
step 3: Close project
step 4: CB crash!
I'm testing CB 10.05 and not have this issue.
And testing wxSmith r6700, or wxPropGrid r6345, both have this issue.
If disable CC plugin, the crash still existed.
I can't find the reason, and can't to fixed.
It's seems happen when move wxPropGrid into SDK?? I am not sure... :?
-
I am testing on Windows XP and ArchLinux.
The crash can occured to any OS.
-
That attached patch should fix the issue (at least on linux).
It's just a quick hack (and I am not really happy with it) and it's not tested on windows.
Can you test it there please ?
We could also completely remove the calls to Freeze and Thaw in wxsPropertyGridManager::UnbindPropertyContainer, but I don't know if it has visual side-effects.
-
I test the patch on Win7 64bit. That seems it works well.
-
Can you test it there please ?
You are a hero! :D
I'm tested on Windows XP and ArchLinux, the issue was gone!
Thanks a lot!
-
I committed the fix to trunk (svn r 6847).
It's better to have this (not so nice code), than to have C::B crash sometimes.