View Single Post
Join Date: Dec 2008
Posts: 7
Reputation: radmaker3 is an unknown quantity at this point 
Solved Threads: 0
radmaker3 radmaker3 is offline Offline
Newbie Poster

Re: Debug Assertion failed. help?

 
0
  #4
Dec 16th, 2008
I simplified the code to this and still got the error.
  1. #include <iostream>
  2.  
  3. using std::cout;
  4.  
  5. int main(){
  6.  
  7. cout << "Hello world!";
  8.  
  9. return 0;
  10. }

I can't copy paste the error code so im just retyping it. I apologize.

Debug Assertion Failed!

Program: ...metns\Visual Studio 2008\Projects\Practice\Debug\Practice.exe
File f:\dd\vctools\crt_bld\self_x86\crt\src\fdopen.c
Line 55

Expression: (filedes >= 0 && (unsigned)fildes < (unsigned)_nhandle)

It then mentiosn looking at the visual c++ docmentation.

After i just typed this all out I was looking at the development software and it had a dropdown menu that said debug, and i changed it to an option of release. solved my problem. So that's that I suppose. If anyone knows why I was getting that error in the first place it might save me a headache in the future i suppose. thanks
Last edited by Narue; Dec 16th, 2008 at 12:16 pm. Reason: fixed code tags
Reply With Quote