Results 1 to 3 of 3

Thread: Crash this bug

  1. #1
    Lesser Knight
    Join Date
    Mar 2009
    Posts
    54

    Default Crash this bug

    This example reproduces a crash.

    Clanlib version: svn 3855
    OS: windows xp

    How to use:
    1. Compile (duh)
    2. Place the executable file in the root directory of clanlib 2.0. Make sure the resources directory is there.
    3. Run the exe, press right or down to see the crash!

    See the attached zip file for the code
    Attached Files Attached Files

  2. #2
    Lesser Knight
    Join Date
    Mar 2009
    Posts
    54

    Default

    It turned out, by pressing down or right, the GUI manager tries to focus to the next component.
    In this case there is no child component to focus to, so it will simply crash.

    Solution: check to make sure the child is not null.

    Here's a patch for the fix
    Attached Files Attached Files

  3. #3
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    thanks, applied.

Similar Threads

  1. Crash in CL_StringReference
    By TheBlackHand in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 09-14-2009, 06:44 AM
  2. Font crash in GUI
    By Harry in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 07-23-2009, 01:47 AM
  3. Crash
    By valdirSalgueiro in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 03-14-2009, 01:47 AM
  4. Game.exe crash
    By Viscos in forum Novashell Game Creation System
    Replies: 1
    Last Post: 11-16-2007, 11:12 PM
  5. Crash on startup under Ubuntu 7.04
    By Rrrichi in forum Novashell Game Creation System
    Replies: 5
    Last Post: 06-08-2007, 11:28 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •