フォームアプリケーションについて

フォーラム(掲示板)ルール
フォーラム(掲示板)ルールはこちら  ※コードを貼り付ける場合は [code][/code] で囲って下さい。詳しくはこちら
ttb

フォームアプリケーションについて

#1

投稿記事 by ttb » 6年前

当方あまりプログラミングの知識もなく検索しても分からなかった為皆さんのお知恵を御貸し頂きたくこのような質問をさせていただきました。以下具体的な質問内容になります。なにとぞよろしくお願いします。
VC++2010でフォームアプリケーションを作ろうとしているのですが上手くいきません
具体的にはウィンドウを作りそこにボタンなどを配置してボタンの操作でウィンドウにカメラ映像を表示させたいと思っています。またカメラ映像にパソコン上に保存した動画を合成して表示なども行いたいと思っています。
そこでopencvを使用したく環境変数やインクルードディレクトリやライブラリディレクトリの設定はしました。opencvは2.4.9を使用しています。
はじめは普通にビルドエラーが表示されました。調べると共通言語ランタイムサポートを (/clr) に変更するとよいと書いてあったので変更するとエラーは出なくなり実行できました(正常終了)が何も表示されなくなりました。
フォームの仕様などは何も変更していません。
コードは以下の通りです。
Forn1.h

コード:

#pragma once
#include<opencv2/opencv.hpp>//この部分のみ追加で書いています。
#include<opencv2/opencv_lib.hpp>//この部分のみ追加で書いています。
#include<opencv2/highgui/highgui.hpp>//この部分のみ追加で書いています。

namespace GUI {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;

	/// <summary>
	/// Form1 の概要
	/// </summary>
	public ref class Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
			//
			//TODO: ここにコンストラクター コードを追加します
			//
		}

	protected:
		/// <summary>
		/// 使用中のリソースをすべてクリーンアップします。
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::PictureBox^  pictureBox1;

	private: System::ComponentModel::IContainer^  components;
	protected: 

	private:
		/// <summary>
		/// 必要なデザイナー変数です。
		/// </summary>

#pragma region Windows Form Designer generated code
		/// <summary>
		/// デザイナー サポートに必要なメソッドです。このメソッドの内容を
		/// コード エディターで変更しないでください。
		/// </summary>
		void InitializeComponent(void)
		{
			this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox());
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->pictureBox1))->BeginInit();
			this->SuspendLayout();
			// 
			// pictureBox1
			// 
			this->pictureBox1->Location = System::Drawing::Point(12, 12);
			this->pictureBox1->Name = L"pictureBox1";
			this->pictureBox1->Size = System::Drawing::Size(357, 378);
			this->pictureBox1->TabIndex = 0;
			this->pictureBox1->TabStop = false;
			// 
			// Form1
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(555, 385);
			this->Controls->Add(this->pictureBox1);
			this->Name = L"Form1";
			this->Text = L"Form1";
			this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->pictureBox1))->EndInit();
			this->ResumeLayout(false);

		}
#pragma endregion
	private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {

			 }
	};
}
また以下のような出力が表示がされます。
'GUI.exe': 'C:\Users\tatebe riku\Documents\Visual Studio 2010\Projects\GUI\Debug\GUI.exe' を読み込みました。シンボルが読み込まれました。
'GUI.exe': 'C:\Windows\SysWOW64\ntdll.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\mscoree.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\kernel32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\KernelBase.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\msvcr100d.dll' を読み込みました。シンボルが読み込まれました。
'GUI.exe': 'C:\opencv\build\x86\vc10\bin\opencv_objdetect249d.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\opencv\build\x86\vc10\bin\opencv_core249d.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\msvcp100d.dll' を読み込みました。シンボルが読み込まれました。
'GUI.exe': 'C:\opencv\build\x86\vc10\bin\opencv_imgproc249d.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\opencv\build\x86\vc10\bin\opencv_highgui249d.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\user32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\gdi32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\lpk.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\usp10.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\msvcrt.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\advapi32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\sechost.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\rpcrt4.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\sspicli.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\cryptbase.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\ole32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\oleaut32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18837_none_ec86b8d6858ec0bc\comctl32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\avifil32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\winmm.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\msacm32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\msvfw32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\shell32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\shlwapi.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\avicap32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\version.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\imm32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\msctf.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\msvcr120_clr0400.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\50bcbedc6ed7027bd709339d3ec4c388\mscorlib.ni.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe' (マネージ (v4.0.30319)): 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll' が読み込まれました
'GUI.exe': 'C:\Windows\SysWOW64\uxtheme.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe' (マネージ (v4.0.30319)): 'C:\Users\tatebe riku\documents\visual studio 2010\Projects\GUI\Debug\GUI.exe が読み込まれました。シンボルが読み込まれました。
'GUI.exe': 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System\48fb602d35146bc0c0002b21343a9f56\System.ni.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe' (マネージ (v4.0.30319)): 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll' が読み込まれました
GUI.exe の 0x779c1025 で初回の例外が発生しました: 0xC0000005: 場所 0x08129223 を読み込み中にアクセス違反が発生しました。
'GUI.exe': 'C:\Windows\SysWOW64\apphelp.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\IMJP14.IME' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\IMJP14.IME' をアンロード
'GUI.exe': 'C:\Windows\SysWOW64\IMJP14.IME' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcr90.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcp90.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\IMJP14K.DLL' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\dwmapi.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\IMEJP\IMJPAPI.DLL' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\SHARED\IMJKAPI.DLL' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\IMEJP\IMJPPRED.DLL' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\clbcatq.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\IMEJP\IMJPTIP.DLL' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\oleacc.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_41e855142bd5705d\comctl32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\SHARED\IMETIP.DLL' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\SHARED\IMECFM.DLL' を読み込みました。Cannot find or open the PDB file

Cannot find or open the PDB fileという文が多く見受けられえるのですがやはりこれが原因なのでしょうか?

白い変人

Re: フォームアプリケーションについて

#2

投稿記事 by 白い変人 » 6年前

私は質問者様と同様の環境を構築しておりませんので、的確なアドバイスが出来ないかもしれません。

ただ、下記サイト↓
http://stackoverflow.com/questions/1593 ... e-pdb-file

を見たところから、私個人の憶測の域を超えてはいませんが、実は、Releaseモードでコンパイルするだけでも、「PDB FILEがなんたらかんたら・・・」の件は回避出来るのかも? ・・・と思った次第です。

ただ、漠然と質問者様は既にそれも試していそうな気がしますし、私としては別な方のご賢答をお待ちしたいところですが、もし試していなかったら、実験的にReleaseモードでコンパイルしてみてはどうでしょうか?

ttb

Re: フォームアプリケーションについて

#3

投稿記事 by ttb » 6年前

早急な回答ありがとうございます。Releaseモードではコンパイルしていなかったので、行ってみましたが今回はエラーが出てしまいました。
以下がその内容になります。

1>------ ビルド開始: プロジェクト: GUI, 構成: Release Win32 ------
1> GUI.cpp
1>c:\users\tatebe riku\documents\visual studio 2010\projects\gui\gui\Form1.h(2): fatal error C1083: include ファイルを開けません。'opencv2/opencv.hpp': No such file or directory

白い変人

Re: フォームアプリケーションについて

#4

投稿記事 by 白い変人 » 6年前

それに関しましては、ググったら出てきた同様の悩みを抱えている人が別サイト質問していたみたいですね。
(→ https://teratail.com/questions/41320 参照)

>ベストアンサー
>PATHは実行ファイルの検索パスなので、そこにインクルードパスを設定しても無意味です。
>CPATHという環境変数に設定してください。
>また、設定する際はincludeまでにしてください。
>opencv2まで入れてしまうとパスが通らなくなります。

つまりは、
>#include<opencv2/なんたらかんたら>
の部分の「opencv2/」の部分を試験的に削除してみてはどうでしょうか?

ttb

Re: フォームアプリケーションについて

#5

投稿記事 by ttb » 6年前

Releaseモードに変更したときに改めてインクルードパスやライブラリパスの設定をし忘れていました。
なので改めて設定したところまた別の下記のようなエラーが出てしまいました。

'System.TypeInitializationException' のハンドルされていない例外が 不明なモジュールです。 で発生しました。

追加情報: '<Module>' のタイプ初期化子が例外をスローしました。

白い変人

Re: フォームアプリケーションについて

#6

投稿記事 by 白い変人 » 6年前

私が十分に状況を把握出来ていない事もあり、もはやトライアンドエラーに近いようなアドバイスしか出来ないかもしれませんが、敢えて現状からアドバイスをするならば、試験的に23行目の、「InitializeComponent();」をコメントアウトしてコンパイルしてみてはどうでしょう?

現状では、それが原因なのではないかと私は思えます。

YuO
記事: 947
登録日時: 13年前
住所: 東京都世田谷区

Re: フォームアプリケーションについて

#7

投稿記事 by YuO » 6年前

ttb さんが書きました:Cannot find or open the PDB fileという文が多く見受けられえるのですがやはりこれが原因なのでしょうか?
PDBはデバッグ用の情報ファイルです。
なので,これがないから動作しない,というようなことはありません。
ttb さんが書きました:'System.TypeInitializationException' のハンドルされていない例外が 不明なモジュールです。 で発生しました。
追加情報: '<Module>' のタイプ初期化子が例外をスローしました。
これは,CLI上のコードにおいて,クラスの静的なコンストラクタ (..ctor static method) が例外を発生させた場合に起きます。
実際の例外は,TypeInitializationExceptionのInnerExceptionに含まれるので,InnerExceptionの型やMessageプロパティの値,StackTraceプロパティの値などを確認してみてください。

ttb

Re: フォームアプリケーションについて

#8

投稿記事 by ttb » 6年前

実際の例外の確認はどのように行えばよいのでしょうか?

YuO
記事: 947
登録日時: 13年前
住所: 東京都世田谷区

Re: フォームアプリケーションについて

#9

投稿記事 by YuO » 6年前

ttb さんが書きました:実際の例外の確認はどのように行えばよいのでしょうか?
デバッグ実行すれば,未処理の例外であるTypeInitializationExceptionが発生した時点で実行が中断されます。
あとは,その時に自動変数あたりに発生した例外が表示されているはずなので,そのプロパティを読んでいけばよいです。

ttb

Re: フォームアプリケーションについて

#10

投稿記事 by ttb » 6年前

デバック実行したところまたしてもエラーはでず実行できたものの何も表示されなくなりました。
また、自動変数の欄には何も表示されていませんでした。
出力は以下の様になっていました。

'GUI.exe': 'C:\Users\tatebe riku\Documents\Visual Studio 2010\Projects\GUI\Debug\GUI.exe' を読み込みました。シンボルが読み込まれました。
'GUI.exe': 'C:\Windows\SysWOW64\ntdll.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\mscoree.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\kernel32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\KernelBase.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\msvcr100d.dll' を読み込みました。シンボルが読み込まれました。
'GUI.exe': 'C:\opencv\build\x86\vc10\bin\opencv_objdetect249d.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\opencv\build\x86\vc10\bin\opencv_core249d.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\msvcp100d.dll' を読み込みました。シンボルが読み込まれました。
'GUI.exe': 'C:\opencv\build\x86\vc10\bin\opencv_imgproc249d.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\opencv\build\x86\vc10\bin\opencv_highgui249d.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\user32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\gdi32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\lpk.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\usp10.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\msvcrt.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\advapi32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\sechost.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\rpcrt4.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\sspicli.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\cryptbase.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\ole32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\oleaut32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18837_none_ec86b8d6858ec0bc\comctl32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\avifil32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\winmm.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\msacm32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\msvfw32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\shell32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\shlwapi.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\avicap32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\version.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\imm32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\msctf.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\msvcr120_clr0400.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\50bcbedc6ed7027bd709339d3ec4c388\mscorlib.ni.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe' (マネージ (v4.0.30319)): 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll' が読み込まれました
'GUI.exe': 'C:\Windows\SysWOW64\uxtheme.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe' (マネージ (v4.0.30319)): 'C:\Users\tatebe riku\documents\visual studio 2010\Projects\GUI\Debug\GUI.exe が読み込まれました。シンボルが読み込まれました。
'GUI.exe': 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\assembly\NativeImages_v4.0.30319_32\System\48fb602d35146bc0c0002b21343a9f56\System.ni.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe' (マネージ (v4.0.30319)): 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll' が読み込まれました
GUI.exe の 0x77961025 で初回の例外が発生しました: 0xC0000005: 場所 0x8d557561 を読み込み中にアクセス違反が発生しました。
'GUI.exe': 'C:\Windows\SysWOW64\apphelp.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\IMJP14.IME' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\IMJP14.IME' をアンロード
'GUI.exe': 'C:\Windows\SysWOW64\IMJP14.IME' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcr90.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcp90.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\IMJP14K.DLL' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\dwmapi.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\IMEJP\IMJPAPI.DLL' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\SHARED\IMJKAPI.DLL' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\IMEJP\IMJPPRED.DLL' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\clbcatq.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\IMEJP\IMJPTIP.DLL' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\SysWOW64\oleacc.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_41e855142bd5705d\comctl32.dll' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\SHARED\IMETIP.DLL' を読み込みました。Cannot find or open the PDB file
'GUI.exe': 'C:\Program Files (x86)\Common Files\microsoft shared\IME14\SHARED\IMECFM.DLL' を読み込みました。Cannot find or open the PDB file

アバター
かめのこのこのこ
記事: 15
登録日時: 6年前

Re: フォームアプリケーションについて

#11

投稿記事 by かめのこのこのこ » 6年前

横やり失礼します。個人的には、
> GUI.exe の 0x77961025 で初回の例外が発生しました: 0xC0000005: 場所 0x8d557561 を読み込み中にアクセス違反が発生しました。
という出力が気になりますね。

私の環境 [ Visual Studio C++ 2010 Express + Windows 10 + OpenCV 2.9.4 ] でも同じような問題が発生するかどうか試しているので、何か手掛かりになりそうなことがあれば報告させていただきますね。

アバター
かめのこのこのこ
記事: 15
登録日時: 6年前

Re: フォームアプリケーションについて

#12

投稿記事 by かめのこのこのこ » 6年前

英語の記事ですが、似たような問題にぶつかっている記事を見つけたので紹介します。

・How to fix _CrtIValidHeapPoint(pUserData) assertion failure in c++ winforms application
( http://stackoverflow.com/questions/7837 ... forms-appl )

2番目の回答者さんの回答がこの問題解決に特に役に立ちそうです。
オフトピック
"_CrtIsValidHeapPointer(pUserData) C++ Windows Forms Application" と検索して出てきた記事です。C++/CLI から C++ (Native) DLL を使うと面倒なことになるなんて... C++/CLI がもっと嫌いになりそうです。

返信

“C言語何でも質問掲示板” へ戻る