Re: [Dev-C++] Problem on XP Professional
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Mohammed I. <mi...@ac...> - 2004-01-27 18:51:11
|
----- Original Message ----- From: "Ed Cottrell" <em...@ed...> To: "'Mohammed Iqbal'" <mi...@ac...>; "'Dev-Cpp-Users'" <dev...@li...> Sent: Tuesday, January 27, 2004 6:16 PM Subject: RE: [Dev-C++] Problem on XP Professional > Mohammed, > > You have a buffer overflow or a problem with pointers. For example, if you > declared in one place char a[] = "Hello world", then tried to do > sprintf(a,"xxxxxxxxxxxxxxxxxxxx"), that could do it. More likely, you're > doing something like assigning an invalid value to a pointer or failing to > use malloc(). I checked it many times. No problem with pointers. It is a memory allocation problem. The problem is solved because I added more memory to my computer. > If your program took three hours to compile and you haven't debugged it, > yet, it's going to take you a LONG time to find all the problems. I suggest > reading up on pointers at http://www.eskimo.com/~scs/C-faq/top.html it took all that time to compile because it is very big and uses class templates and function templates heavily. Mohammed |