Why does my program crash upon running?

This is a discussion on Why does my program crash upon running? within the C++ Programming forums, part of the General Programming Boards category; My code crashes upon running.. It is build via PRJ and run through commandn prompt. Any ideas what is the ...

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    30

    Why does my program crash upon running?

    My code crashes upon running.. It is build via PRJ and run through commandn prompt. Any ideas what is the problem?
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    Mar 2008
    Posts
    30

    The attachments..

    Here are the attachments part 2
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    30

    The attachments cont

    Attachments part3
    ** all image files are to be put into folder called 'img'
    Attached Images Attached Images   
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    Mar 2008
    Posts
    30

    Attachments cont...

    Attachments part4
    Attached Images Attached Images    

  5. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    30

    Attachments cont..[Last]

    Attachments part5
    Attached Images Attached Images    

  6. #6
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    throw in some couts and find the part where the program stops
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  7. #7
    Registered User
    Join Date
    Mar 2008
    Posts
    30

    Where my program crashes..

    The program crashes as soon as it begins to run...

  8. #8
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    then start looking for errors in your header files
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  9. #9
    The larch
    Join Date
    May 2006
    Posts
    3,573
    rubiks is an uninitialized pointer. There is no Rubiks instance which the rest of the code expects to manipulate.

    Code:
    int main(int argc, char *argv[])
    {
    	Rubiks *rubiks;
    	int n, rubikc;
    	char choice, mode;
    
    	rubikdesign(rubiks, argv);
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  10. #10
    Registered User
    Join Date
    Mar 2008
    Posts
    30

    New problems....

    I got two problems after I fixed the previous problem (thanks).
    1) When I go to auto mode from manual mode, the string does not keep what i have done in manual into the string in the auto mode.

    2) The counter for auto mode seems to added 3 from the supposed counter value. What could be the cause if when I start the program the counter is initialized as 0?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Finding Program Running Time
    By pf732k3 in forum C Programming
    Replies: 6
    Last Post: 03-18-2008, 02:56 PM
  2. Running my program in the background
    By shoobsie in forum Windows Programming
    Replies: 4
    Last Post: 10-09-2005, 03:38 AM
  3. Replies: 3
    Last Post: 09-05-2005, 09:57 AM
  4. Why is my program running away?
    By badkitty in forum C++ Programming
    Replies: 4
    Last Post: 09-19-2001, 05:27 PM
  5. Running program
    By muffin in forum C Programming
    Replies: 5
    Last Post: 08-30-2001, 11:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21