Hello everyone,
I had encounter a crash problem frequently, the call stack in crash reports are almost point the problem to wxString.
But I can not figure out the root cause of this issue. This codeblocks was use wxWidget 2.8.10. thanks.
Case 1:
<frame level="2" function="wcslen" offset="00000058"/>
<frame level="3" function="wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)" offset="0000008d"/>
<frame level="4" function="wxStringBase" offset="00000000" file="/usr/local/include/wx-2.8/wx/string.h" line="368"/>
<frame level="5" function="wxString::wxString(wxWCharBuffer const&)" offset="0000002c"/>
<frame level="6" function="EncodingDetector::ConvertToWxStr(unsigned char const*, unsigned int)" offset="000000bc"/>
<frame level="7" function="EncodingDetector::DetectEncoding(unsigned char const*, unsigned int, bool)" offset="000003b1"/>
<frame level="8" function="EncodingDetector::DetectEncoding(wxString const&, bool)" offset="000000f4"/>
<frame level="9" function="EncodingDetector::EncodingDetector(wxString const&)" offset="0000006a"/>
Case 2:
<frame level="2" function="wxStringBase::operator=(wxStringBase const&)" offset="00000017"/>
<frame level="3" function="wxString::operator=(wxString const&)" offset="00000000" file="/usr/local/include/wx-2.8/wx/string.h" line="660"/>
<frame level="4" function="wxLongRcStringPropertyClass::SetColor(wxString)" offset="0000009b"/>
<frame level="5" function="wxLongRcStringPropertyClass::SetValueFromString(wxString const&, int)" offset="000000a4"/>
<frame level="6" function="wxPropertyGridState::SetPropertyValue(wxPGProperty*, wxString const&)" offset="0000006c"/>
<frame level="7" function="wxPropertyGrid::SetPropertyValue(wxPGId, wxString const&)" offset="00000045"/>
<frame level="8" function="wxPropertyGridManager::SetPropertyValue(wxPGId, wxString const&)" offset="00000075"/>