なんとなく解決?ヒープエラーで死ぬ件。

 WinDbgデバッグ
 自分のプログラムは問題なく動いてるっぽい。確保したメモリを超えたアクセスもしてそうにないし、deleteの直後に全部NULLを入れるように作り替えた(コレが面倒だった)。
 それでもVisual C++ 2010 Expressは落ちる・・・。

 このバグ潰しに時間を割きまくってるせいで、ブログ巡回なども出来ておらず・・・。
 すみません、今から見て回ります><;

というわけで

 VC++WinDbgからアタッチして裏で何やってるか確認してみた。

 そしたら出るわ出るわ。

*** HR originated: -2147024774
***   Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302


*** HR propagated: -2147024774
***   Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144


*** HR originated: -2147024774
***   Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302


*** HR propagated: -2147024774
***   Source File: d:\iso_whid\x86fre\base\isolation\com\enumidentityattribute.cpp, line 144


*** HR originated: -2147024774
***   Source File: d:\iso_whid\x86fre\base\isolation\com\copyout.cpp, line 1302

 とか、

(c68.10d8): C++ EH exception - code e06d7363 (first chance)
(c68.10d8): C++ EH exception - code e06d7363 (first chance)
(c68.10d8): C++ EH exception - code e06d7363 (first chance)

 とか、

(c68.1538): CLR exception - code e0434352 (first chance)

 ってのが大量に出力される。
 で、ググってみたら、

投稿者: jschroedl、投稿日時: 2010/04/20 5:15
This is still a problem in VS2010 RTM. This issue should be marked as Active since there is no other connect issue I can find to up vote.

I cannot access or locate anything with the title "Dev10#824591 CLICKONCE: ISOLATION STORE: Reduce spurrious and/or inocuous debugger spew that originates from isolated storage" so please upvote it for me.

投稿者: Matthew Watson、投稿日時: 2010/05/12 8:01
This is not fixed. It is happening with the release version of Visual Studio 2010. And the debug spam is VERY ANNOYING.

vs2010 debug output should be cleaned up | Microsoft Connect

 VS2010RTMの問題で、リリースバージョンでも発生している問題らしい。
 おいおい><;
 もう一回2008を入れ直してみる!
 .Net Frameworkを全部消したり、念を入れながらやってるから、面倒なんだけどなー。



楽々ERDレッスン (CodeZine BOOKS)