1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

free()したらデバッガにヒープ破壊してますよと言われた時の対処

Last updated at Posted at 2023-07-20

環境

windows11
visual studio 2022

エラーメッセージ

free()が実行されると表示

HEAP CORRUPTION DETECTED

訳:ヒープ破壊を検出したで

画像1.png

対処

問題のfree()の前のどこかでメモリ領域外アクセスしてないか確認

覚えておこう

デバッガは領域外アクセスしても意外と止めてくれない

1
0
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?