News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

wxPropGrid crash!

Started by Loaden, November 13, 2010, 02:18:43 PM

Previous topic - Next topic

Loaden

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... :?

Loaden

I am testing on Windows XP and ArchLinux.
The crash can occured to any OS.

Jenna

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.

xunxun

I test the patch on Win7 64bit. That seems it works well.
Regards,
xunxun

Loaden

Quote from: jens on November 13, 2010, 03:06:11 PM
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!

Jenna

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.