Thread: added start menu crashes game

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    43
    Try to run it in debug mode and report the place where the program crashes.
    Crash bugs are among the easiest to find as a debugger almost always can point out directly the part that is causing the crash.

    Just posting lots of code is a good way of not getting any help at all...it takes a lot of time to look through other peoples code.

    Give the debugger a shot, look at the backtrace, if you don't understand the output, post it here.

    /f

  2. #2
    NotSoAvgProgrammer
    Join Date
    Jul 2007
    Location
    Virginia, U.S.
    Posts
    57
    Selecting target: default
    Compiling: done
    Starting debugger: done
    Adding source dir: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
    Adding file: SDLapp.exe
    No source file named pong_game.cpp.
    error
    error
    error
    error
    error
    error
    error
    error
    error
    error
    error
    error
    error
    exited 0
    Debugger finished with status 0

    Was the debugging message, but I did not get anything out of that. I found the can not find source file interesting though, as if I put in a program that ran fine, and went through debug, it gave that same message, yet the program ran fine.


    I also got this
    Code:
    Loading lexer_cg.xml
    Loading lexer_cpp.xml
    Loading lexer_f77.xml
    Loading lexer_gm.xml
    Loading lexer_hitasm.xml
    Loading lexer_lua.xml
    Loading lexer_prg.xml
    Loading lexer_rc.xml
    Loading lexer_xml.xml
    Loading toolbar...
    Added compiler "GNU GCC Compiler"
    Added compiler "Microsoft Visual C++ Toolkit 2003"
    Added compiler "Borland C++ Compiler 5.5"
    Added compiler "Digital Mars Compiler"
    Added compiler "OpenWatcom (W32) Compiler"
    Added compiler "SDCC Compiler"
    Source code formatter (AStyle) plugin loaded
    C::B Profiler plugin loaded
    Class wizard plugin loaded
    Code completion plugin loaded
    Code Statistics plugin loaded
    Compiler plugin loaded
    GDB Debugger plugin loaded
    Default MIME handler plugin loaded
    Dev-C++ DevPak updater/installer plugin loaded
    Source HTML, RTF and ODT exporter plugin loaded
    Help plugin plugin loaded
    Code::Blocks Plugin wizard plugin loaded
    To-Do List plugin loaded
    Windows XP Look'n'Feel plugin loaded
    Loading workspace "C:\Documents and Settings\Owner.YOUR-99DDF15D27\.CodeBlocks\default.workspace"
    Loading project file...
    Parsing project file...
    Loading project files...
    Project's base path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
    Project's common toplevel path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
    Start parsing project 
    Concurrent threads for pool set to 2
    End parsing project  (no files found?)
    Setting up compiler environment...
    Setting up compiler environment...
    Loading project file...
    Parsing project file...
    Loading target default
    Loading project files...
    Project's base path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
    Project's common toplevel path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
    Start parsing project SDL Application
    Concurrent threads for pool set to 2
    Setting up compiler environment...
    Done parsing project SDL Application (1 total parsed files, 15 tokens in 0.31 seconds).
    Updating class browser...
    Class browser updated.
    project data set for C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\game.cpp
    Top Editor: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\game.cpp
    Loading project file...
    Parsing project file...
    Loading target default
    Loading project files...
    Project's base path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
    Project's common toplevel path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
    Start parsing project SDL Application
    Concurrent threads for pool set to 2
    Setting up compiler environment...
    Done parsing project SDL Application (1 total parsed files, 30 tokens in 0.31 seconds).
    Updating class browser...
    Class browser updated.
    project data set for C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\lesson05.cpp
    Top Editor: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\lesson05.cpp
    Setting up compiler environment...
    Scanned 0 files for #includes, cache used 1, cache updated 0
    Scanned 0 files for #includes, cache used 1, cache updated 0
    Scanned 0 files for #includes, cache used 1, cache updated 0
    Scanned 0 files for #includes, cache used 1, cache updated 0
    Scanned 0 files for #includes, cache used 1, cache updated 0
    Scanned 0 files for #includes, cache used 1, cache updated 0
    Scanned 0 files for #includes, cache used 1, cache updated 0
    Scanned 0 files for #includes, cache used 1, cache updated 0
    Scanned 0 files for #includes, cache used 1, cache updated 0
    Project's base path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
    Project's common toplevel path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
    Done parsing project SDL Application (1 total parsed files, 30 tokens in 102.15 seconds).
    Updating class browser...
    Class browser updated.
    Scanned 0 files for #includes, cache used 0, cache updated 0
    Setting up compiler environment...
    Setting up compiler environment...
    Scanned 1 files for #includes, cache used 0, cache updated 1
    Project's base path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
    Project's common toplevel path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
    Done parsing project SDL Application (1 total parsed files, 30 tokens in 134.671 seconds).
    Updating class browser...
    Class browser updated.
    found C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\pong_game.cpp
    Scanned 0 files for #includes, cache used 1, cache updated 0
    Scanned 0 files for #includes, cache used 1, cache updated 0
    Scanned 1 files for #includes, cache used 0, cache updated 1
    Setting up compiler environment...
    Setting up compiler environment...
    Scanned 0 files for #includes, cache used 0, cache updated 0
    Done parsing project SDL Application (1 total parsed files, 29 tokens in 0.31 seconds).
    Updating class browser...
    Class browser updated.
    Setting up compiler environment...
    Setting up compiler environment...
    Scanned 1 files for #includes, cache used 0, cache updated 1
    Scanned 0 files for #includes, cache used 0, cache updated 0
    Done parsing project SDL Application (1 total parsed files, 59 tokens in 0.31 seconds).
    Updating class browser...
    Class browser updated.
    Setting up compiler environment...
    Scanned 0 files for #includes, cache used 0, cache updated 0
    Done parsing project SDL Application (1 total parsed files, 30 tokens in 0.32 seconds).
    Updating class browser...
    Class browser updated.
    Setting up compiler environment...
    Setting up compiler environment...
    I hope that helps you, is there another way for me to debug and try and figure it out myself.

    Thanks,

    Joe

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to build a flexible Game Menu..
    By ThLstN in forum Game Programming
    Replies: 1
    Last Post: 12-13-2008, 10:53 AM
  2. How to start a game...?
    By TaraTheCasper in forum Game Programming
    Replies: 30
    Last Post: 10-24-2004, 09:20 PM
  3. Game programming ........ Where is good place to start?
    By 3DPhreak in forum Game Programming
    Replies: 4
    Last Post: 06-17-2004, 10:54 AM
  4. number guessing game, no idea where to start
    By karin in forum C Programming
    Replies: 9
    Last Post: 03-18-2004, 09:49 PM
  5. Where to start game development
    By NeoBunny in forum Game Programming
    Replies: 4
    Last Post: 09-25-2002, 05:42 PM