Hello i just downloaded free Clode Blocks IDE from codeblocks.org and it was all great,
but after 2 weeks or so Code::blocks console wouldnt close so i remove it from my PC and i downloaded it again for free from the same web but again i tryed to compile a small code, it compile fine except saying this:
Process returned -1073741510 <0xC000013A> execution time : 12.42 s
Press any key to continue.
And i cant close to console. I tryed from the little X in top right, tryed whit right mouse button to close it from the minimized in the start menu, also tryed whit Task Manager wich couldnt help at all. I resstart my PC andconsole is closed, ofcourse.
I have DevC++ on my PC but since i know abotu Code::blocks, it becomes my IDE! So easy to work whit and comfortable.
Im using the latest C::B on my 32bit computer, please help me i really dont want to switch my IDE whit DevC or Visual for ever.
regards -perento
Try this code and see if your still getting that error.
#include <iostream>
#include <conio.h>
#include <cstdlib>
using namespace std;
int main()
{
unsigned key;
do
{
cout << "0) Play again"
<< endl
<< "1) Quit" << endl;
key = getche();
cout.put('\x8');
}while(key != '1');
return 0;
}
If you are, then your most likely missing some sort of DLL that talks to Windows. Are you on XP ? If so, then make sure to install the Windows SDK. If your on Vista or Windows 7, then try installing the Windows 7 SDK. This really should not be the way to solve it, but I have noticed that there are missing DLLs from some computers. So just try the code I provided above first and if that does not work, then install a SDK.
Also, make sure you start a new application for the console before pasting the code above.
Also, you didn't post any source code, so there is really no way to know why it will not close. You could be using code that actually prevents it from closing the normal way. So again, this is not going to get solved without further info from you.
On another note, how come your not using the MingW C++ compiler ? The Dev-CPP version is outdated and not supported last I heard. MingW is updated, free and comes with C::B if you chose the right install file.