Thread: Crash on return 0

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    1ST » R. vd Kooij
    Join Date
    Mar 2006
    Location
    Netherlands
    Posts
    154

    Crash on return 0

    Hi, I've got a nasty problem that's been bugging me for almost a week now. I will start off with a general question because I have the feeling it can be solved that way;

    Has anyone of you had the problem that a program crashed on the return line of a function? If so, what did you do to solve it?

    It comes down to this:
    Code:
    puts("\n Stopped!");
    getch();
    return 0;
    ^ the end of the function GoLive.

    And:
    Code:
    GoLive(br_cnt, "\0", -1);
    puts("Returned?");
    ^ calling the function


    Now "Stopped!" is printed on the screen, but "Returned?" isn't....


    Any ideas? I've checked and rechecked, but I can't find anything wrong.

    Thanks very much in advance,

    René
    Last edited by rkooij; 03-26-2007 at 02:25 AM.
    http://www.f1rstracing.nl/
    OS: Windows XP
    Compiler: Dev-C++

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 02:39 PM
  2. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  3. opengl program as win API menu item
    By SAMSAM in forum Game Programming
    Replies: 1
    Last Post: 03-03-2003, 07:48 PM
  4. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM
  5. Algorithm to walk through a maze.
    By Nutshell in forum C Programming
    Replies: 30
    Last Post: 01-21-2002, 01:54 AM