string text; printf(" "); do { code++; char c[1]; code += 1 + get_char(c, code, utf8); string nextChar(c); text.append(nextChar); } while (*code == OP_CHAR); Thread [1] (Suspended: Signal 'SIGSEGV' received. Description: Segmentation fault.) 7 _libmsvcrt_a_iname() 0x77c47124 6 0x00880020 5 std::string::_Rep::_M_clone() 0x0048db4f 4 std::string::reserve() 0x0048f009 3 std::string::append() 0x0048e02e 2 graph() at ..\src\pcre_printint.cpp:258 0x004038d5 1 main() at ..\src\main.cpp:23 0x004014aa