Hi All, How can I overwrite or remove some code parts which were already rewritten? Here is my code: string S = … Rewriter.InsertText(Loc, S); Rewriter.RemoveText(Loc, S.length()); <=== Here, Segmentation fault. Thanks for your help! Best, Kihong