• ベストアンサー

デバッグエラー

今晩和 VC++2005を使ってプログラムを開発しているのですが、デバッグ時に以下のエラーボックスが表示されます Debug Assertion Failed! Program: ... File: mbstowcs.c Line: 69 Expression: s!=NULL For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. コンパイルまでは問題なく出来るのですが・・・・ 原因不明でかなりまいっています 御教授お願いします 環境 WindowsXP SP3 Visual Studio 2005 アカデミー サンプルプログラム:http://chihara.naist.jp/people/STAFF/imura/products/labeling内のwindows用サンプル一式

質問者が選んだベストアンサー

  • ベストアンサー
  • php504
  • ベストアンサー率42% (926/2160)
回答No.3

コマンドプロンプトを開いてでsample.exeのある場所に移動します C:\~~~\sample\Debug> そこで sample.exe test.bmp out.bmp のように打ち込みましょう

e1a514
質問者

お礼

回答ありがとうございます(_ _) 実行出来ました!今の所問題も起きて無いです

その他の回答 (2)

回答No.2

 VS2008ではうごきましたよ。普通に。  ひょっとして、コマンドライン引数を指定していないのではないですか?

e1a514
質問者

お礼

回答ありがとうございます(_ _) スミマセン、多分(いや、恐らく確実に)指定して無いです(- -;) コマンドライン引数の指定って、どうやるのでしょうか? 素人丸出しの質問で申し訳ありません(_ _)

  • Tacosan
  • ベストアンサー率23% (3656/15482)
回答No.1

元のサンプルは確認していませんが, びみょ~な書き方になっているために「2003 では動くけど 2005 では動かない」という可能性はありますな.

e1a514
質問者

お礼

回答ありがとうございます(_ _) となると、2005では完全に動かせないのでしょうか?

関連するQ&A

  • デバッグ中のエラーのことで教えてください。

    下のようなエラーが出て困っています。 コンパイルされているのですが、いろいろなサイトを調べましたが、どのようなエラーであるのかが結局わからなかったので、ここで質問しました。 プログラミング環境は、 Microsoft Visual Studio .NET 2003 です。 OSはWindows XP SP3 です。 Debug Assertion Failed! File:dbgdel.cpp Line:52 Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) For information on how your program can cause an assertion failure, see the Visul C++ documentation on asserts. というエラーが出ます。 メモリ容量、CPUに関しては4GB,クロック3GHzのクアッドコアを使用しているので、ここで問題が発生しているとは考えられないです。一体、どのようなエラーなのでしょうか??? よろしくお願いします。

  • クリティカルエラー Expression: ("Buffer too small", 0)

    VC++2005でコンパイルしたアプリですが、実行すると クリティカルエラーの次のメッセージが表示されました。 VCの設定で解決できるものなのでしょうか? Microsoft Visual C++ Debug Library ... Expression: ("Buffer too small", 0) Foi infomation how your program can cause an assertion failure, see the Visual C++ documentation on asserts. (press Retry debug the application)

  • ソフトが使えない

    あるソフトを立ちあげようとすると Microsoft Visual C++ Debug Library Debug Assertion Failed!(プログラム名) For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. (Press Retry to debug the application) と言うメッセージがでてソフトが使えません。 これは、何のことでしょうか。 使えるようになるのですか。

  • Microsoft Visual C++ Runtime Library Assertion failedのエラーについて教えてください。

    Microsoft Visual C++ Runtime Library Assertion failedのエラーについてですが、ある時フォルダを開けて約5秒くらいするとこのエラーが必ず発生します・・・。 内容は Assertion failed!   Program:C\WINDOWS\explorer.exe File.../external/boost_1_31_0\boost/shard_ptr.hpp Line:254 Expression:px !=0 For information on how your program can cause an assertion failure,see the Visual C++ documentation on asserts (Press Retry to debug the application - JIT must be enabled) といったエラーがでてきます。全くわたくしじゃ意味もわからずどーしたらいいかわかりませんのでお力お貸しください。宜しく御願い致します。

  • ドキュメントと開くとエラーになります

    マイドキュメントと開くとエラーになります 具体的には、 Microsoft Visual C++ Runtime Library Assertion failed! Program:C:Windows\Explorer.EXE For information on how your program can cause an assertion failures , see the Visual C++ documentation on asserts (Press Retray to debug the application. JIT must be enabled) と表示されます。(中止)(再試行)(無視)のボタンが下にあるんですが、どれをクリックしても「エクスプローラを再起動します」となってフォルダが閉じるだけです。具体的にどのような操作をすれば修復できるか教えてください。

  • エラー改善法を教えてください

    windowsXPで他人のプログラムを実行しています。 VC7で作成したプログラムをVC9で起動したところ、 ビルド→デバック→実行までは通ったのですが、 アプリケーションの途中で特定の動作を実行すると、 以下のようなエラーが出ます。 Debug Assertion Failed! Program:~\myProg.exe File:C:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector Line:780 Expression:("Standard C++ Libraries Out of Range",0) For information on how your program can cause an assertion failure, see tha Visual C++ documentation on asserts. (Press Retry to debug the application) その後、myProg.exeによってブレークポイントが発生しました となります。 エラーがC:\Program Files\Microsoft Visual Studio 9.0\VC\include\vectorの中では、手のつけようがありません。 どなたかアドバイスお願いします。

  • ドライブを右クリックするとエラーになる?

    マイコンピュータを開いた後に、C:やD:などの、容量や中身を確認しようと思い、アイコンを右クリックをするとエラーが出て画面が閉じてしまうのですが? エラー画面が出てきてしたのようなメッセージが表示されます。 Debug Assertion Failed Program: C:\WINDOS\exploer.exe File:dbgheap.c Line:1011 Expression:_CrtIsValidHeapPointer(pUserData) For information on how your program can cause an assertion failure see the Visual C++ docummentation on asserts と表示されるのですが、何が原因なのでしょうか?

  • occmgr.cppの行410で特定のエラー

    .Net2003で作成したプロジェクトを実行しようとするとoccmgr.cppの行410で特定のエラーが出て実行できません。以下が特定のエラーの内容です。 Debug Assertion Failed!! File occmgr.cpp Line 410 For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. どうすればいいかわかりません。 よろしくお願いします。

  • 実行途中でのエラー発生について

    こんばんは。 この掲示板を頻繁に利用させていただいている者です。 Visual C++.NET 2003を利用しソケットプログラミングをしていたところ、突然わけの分からないエラーが途中で発生してしまいます。 [エラー内容] Debug Assertion Failed! File: fprintf.c Line:56 Expression: str != NULL For information on how your program can cause an assertion failure,see the Visual C++ documentation on asserts. (Press Retry to debug the application) 上記のようなエラー内容です。 今まで実行可能であったのに、突然エラーメッセージが発生しました。 Line:56ということから56行目を見たところ、str != NULLという記述もしていませんし、かつその行はコメントを記述しています。 なにか原因があるのでしょうか? よろしくお願いします。

  • 初心者でわかりません?突然出てきます。

    突然 Microsoft Visual C++ Runtime Library X Assertion failed! Program:C:\WINDOWS\Explorer.EXE File:../external/boost.-1-31-0\boost./shared-ptr.hpp rine:254 Expression:px!=0 For information on how your program can cause an assertion failure.see the Visual C++ documentation on asserts (Press Retry to debug the application-JIT must be enabled) 中止(A) 再試行(R) 無視(I) と出てきます。ぜんぜんの初心者ですのでパニックってます、なにかパソコンに問題が生じてるんでしょうか、私のような者にわかるように教えていただければ幸いです。宜しくお願いいたします。

専門家に質問してみよう