class stdTest
{
public:
//std::string sss;
stdTest()
{
std::string teststr(“StartupModule xector:0123456789012345678901234567890123456789”);;
std::string sss(teststr.begin(), teststr.end());
printf("%s \n",sss.c_str());
}
};
static stdTest s_test;
Debug build of these code may crash on one of our ios device(iphone xr, iOS 12.4.1) with message
malloc: *** error for object 0x11cc23040: pointer being freed was not allocated
But works fine on other iOS device or build with development or shipping