Question on DEV C++ and Windows XP

Hello,

I am writing a code, using DEV C++ on Windows XP, that manipulates the positions of several elements within a certain area using arrays. The first part of the code asks the user to input some parameters and the second is the execution part. Now, there is no problem inputting the data but once execution starts Windows terminates the application with an error report. I have tried many times with it but the problem still exists. I don't know whats wrong.
Any help on this will be greatly appreciated....


Try running it in the debugger to see what it says. Because you are using arrays, I think that it is probably a segfault. Make sure you aren't accessing an array out of bounds anywhere.
Are people still using Dev c++? I recommend you switch to something else, as dev c++ hasn't been updated in a while.

How 'bout code::blocks, code lite?

And please post your code so we can see what's going on.
I never used code lite before..is it better than DEV C++? do I need to modify my code to use it with code lite?
I really wish I could post my code but the limiting size here will never allow me to do it..
Code::Blocks is very good: http://www.codeblocks.org/
On Windows you could also try Visual C++ Express (IMO, even better): http://www.microsoft.com/express/Downloads/#2010-Visual-CPP

is it better than DEV C++?

Some reading for you :P
http://www.cplusplus.com/forum/articles/36896/
But in short it is abandonware.

[edit]
do I need to modify my code to use it with code lite?

I haven't heard of Code Lite, but anything you wrote in Dev C++ should work in Code::Blocks and probably Visual C++ with no change (or very small change).

Once you have a decent IDE, use a debugger to step through the program as Modshop says. Then you can see which line is causing your error.
Last edited on
Thank you
Topic archived. No new replies allowed.