User forums > Using Code::Blocks
crash when I try to open a wxsmith file under C::B against wx 3.3.1
Miguel Gimenez:
You can try something like this (untested):
--- Code: ---#if wxCHECK_VERSION(3, 3, 0)
VALUE.m_colour = wxColour(_T("rgb")+Id->GetValueAsString(wxPGPropValFormatFlags::Null));
#else
VALUE.m_colour = wxColour(_T("rgb")+Id->GetValueAsString());
#endif
--- End code ---
ollydbg:
--- Quote from: Miguel Gimenez on January 26, 2026, 09:51:51 am ---You can try something like this (untested):
--- Code: ---#if wxCHECK_VERSION(3, 3, 0)
VALUE.m_colour = wxColour(_T("rgb")+Id->GetValueAsString(wxPGPropValFormatFlags::Null));
#else
VALUE.m_colour = wxColour(_T("rgb")+Id->GetValueAsString());
#endif
--- End code ---
--- End quote ---
Thanks, let me try it as soon as possible.
The strange thing is the assert cause crash if the C::B is running without debugger. Under GDB debugger, it just pop out the warning message, so I can click the "continue" to skip the warning.
gd_on:
I think I have the same problem.
I tried your patch in wxscolourproperty.cpp, but no difference. Still a crash when I try to open a wxsmith old file. I obtain an rpt file if this can help.
Before the crash, I can see that a new tab is opened in the editor, but it has a name like Untitled0.
ollydbg:
--- Quote from: gd_on on January 26, 2026, 02:32:27 pm ---I think I have the same problem.
I tried your patch in wxscolourproperty.cpp, but no difference. Still a crash when I try to open a wxsmith old file. I obtain an rpt file if this can help.
Before the crash, I can see that a new tab is open in the editor, but it has a name like Untitled0.
--- End quote ---
Hi, thanks for the test. I just looked at the crash report file, and it is the same crash call stack as mine.
ollydbg:
--- Quote from: Miguel Gimenez on January 26, 2026, 09:51:51 am ---You can try something like this (untested):
--- Code: ---#if wxCHECK_VERSION(3, 3, 0)
VALUE.m_colour = wxColour(_T("rgb")+Id->GetValueAsString(wxPGPropValFormatFlags::Null));
#else
VALUE.m_colour = wxColour(_T("rgb")+Id->GetValueAsString());
#endif
--- End code ---
--- End quote ---
I just apply this patch, and I see the result C::B still crashed when I open a wxsmith file. :(
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version