Debug Help

This is a discussion on Debug Help within the Game Programming forums, part of the General Programming Boards category; Hi, My 'game' compiles runs etc with no erros or warnings. BUT it has a major problem and I cant ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    224

    Lightbulb Debug Help

    Hi,

    My 'game' compiles runs etc with no erros or warnings.

    BUT it has a major problem and I cant find where it is.

    It all runs as supposed to EXCEPT when I attempt to hover the mouse cursor over the game window the window closes automatically. Cant seem to figure out what iit is. Anyone have any ideas???

    Thanks

    (Win32 API - Visual Studio 2008 Prof)

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    That's not particularly easy to figure out for us, as we have no idea about what your application does when it hovers. Perhaps setting a breakpoint in the message pump will give some insight?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Nor
    Nor is offline
    h ֆhr s Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    Quote Originally Posted by strokebow View Post
    Hi,

    My 'game' compiles runs etc with no erros or warnings.

    BUT it has a major problem and I cant find where it is.
    Some code would help. Until then try placing a breakpoint where you handle the mouse, then start moving the breakpoint deeper into the code until your window starts closing. then just backup a little for a good look. If you can find the line that is closing your program then I suggest pausing there and examine your call stack and all local variables which have an effect on your function. Sounds like your not processing an exception, or overwriting the stack somewhere.
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Binary not built with debug info - why?
    By ulillillia in forum C Programming
    Replies: 15
    Last Post: 12-11-2008, 01:37 AM
  2. makefiles - debug & release?
    By cpjust in forum C Programming
    Replies: 6
    Last Post: 10-26-2007, 05:00 PM
  3. Debug --> Exceptions in Visual Studio 2005
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 08-10-2007, 03:12 AM
  4. Results in Debug and Release mode are different
    By jaro in forum C Programming
    Replies: 11
    Last Post: 05-27-2006, 12:08 PM
  5. Ask about Debug Assert Failed
    By ooosawaddee3 in forum C++ Programming
    Replies: 0
    Last Post: 04-25-2002, 12:07 AM

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