User forums > Using Code::Blocks

crash when I try to open a wxsmith file under C::B against wx 3.3.1

<< < (4/5) > >>

ollydbg:
It looks like the C::B try to read some string values to "reconstruct" the prop grid when reading the wxs file.

But the "string value" maybe empty or not correct, so wx just report the assert.

My guess is that the issue is inside the wxWidgets' library code, not in the C::B's source code.

Miguel Gimenez:
This method, defined in wxscolourproperty.cpp:152

--- Code: ---    wxString wxsMyColourPropertyClass::ValueToString( wxVariant& value,  int argFlags ) const

--- End code ---
does not override in wx >= 3.3.0 because the second parameter is no longer an integer, see the documentation.

EDIT: Adding "override" to the declaration would have uncovered this long ago.

Miguel Gimenez:
Try this file (rename as cpp). It may need some adjustment to compile on wx3.3.

gd_on:
Not extensively tested, but it looks OK : wxs files are opened without crash.
Thanks

ollydbg:

--- Quote from: gd_on on January 26, 2026, 07:49:43 pm ---Not extensivety tested, but it looks OK : wxs files are opened without crash.
Thanks

--- End quote ---

Strange, I just replaced my local the file: wxscolourproperty.cpp, but the result C::B still crash with the same issue.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version