Thread: Why does this program crash at run-time

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    4

    Angry Why does this program crash at run-time?

    There are two versions of this program. One is working fine (cw5.zip) and the other is crashing at run-time. The only file that has actually changed from version 1 to version 2 is the "basicLIST.c" and "basicLIST.h".

    I don't understand why it crashes! When compiled the 2nd version gives no errors or warnings at all!!!

    version 1
    version 2

    Please help me out, I am really stock on this one!
    Cheers,
    Meys
    Last edited by meys; 10-18-2001 at 04:29 AM.

  2. #2
    Registered User pinko_liberal's Avatar
    Join Date
    Oct 2001
    Posts
    284
    The zipped file is 257kb

  3. #3
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Yeh, just post where you think the problem is occuring. A couple of reasons for runtime crashes:

    -dividing by 0
    -calling unitialized pointers

    Are you working with pointers? Because that is the hardest runtime error to see. Maybe a linked list that is looking towards the next node which was allocated. These are all possibilities.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can't get this program to run correctly
    By Amyaayaa in forum C++ Programming
    Replies: 3
    Last Post: 02-05-2008, 04:16 PM
  2. How program run predefine time?
    By Arafat_211184 in forum C Programming
    Replies: 9
    Last Post: 12-16-2005, 03:44 AM
  3. Replies: 5
    Last Post: 04-17-2003, 07:07 AM
  4. inputting time in separate compilation
    By sameintheend01 in forum C++ Programming
    Replies: 6
    Last Post: 03-13-2003, 04:33 AM
  5. Trying to make rand different per program run
    By Dreamerv3 in forum C++ Programming
    Replies: 6
    Last Post: 01-18-2002, 03:26 AM