コードは1行しかありません。これは次のとおりです。
pcrecpp::RE re("abc");
関数内OnBnClickedButtonGo()
。この関数はリリース モードでは失敗しますが、デバッグ モードでは問題なく動作します。
(Windows XP で Visual Studio 8 を使用しています。)
エラーメッセージは次のとおりです。
A buffer overrun has occurred in testregex.exe which has corrupted the program's
internal state. Press Break to debug the program or Continue to terminate
the program.
For more details please see Help topic 'How to debug Buffer Overrun Issues'.
目に見えず、暗示されているデストラクタだと思います...しかし、私は本当に知りません。
PS: PCRE lib バージョン 7.8 に静的にリンクしています。PS2: あまり関連性はありませんが、PCRE ライブラリへのリンクに問題がある一部の人々を助けるかもしれません (それを整理するのに何時間もかかりました): 行を含めます#define PCRE_STATIC
.