Results 1 to 5 of 5

Thread: Crash

  1. #1
    Peasant
    Join Date
    Mar 2009
    Posts
    5

    Default Crash

    hello im using clanlib from SVN

    im having a crash when i try to "connect" a signal from mouse

    the crash occurs here:

    PHP Code:
    >    ShadowOfTheBeast.exe!CL_InputDevice_Impl::~CL_InputDevice_Impl()  Line 49 0x10 bytes    C++

        ~
    CL_InputDevice_Impl()
        {
            if (
    provider)
    here! --->    provider->destroy();
        } 
    it happens when the application is closed

    if i remove:

    PHP Code:
    CL_Slot slot_mouse_down window.get_ic().get_mouse().sig_key_up().connect(this, &App::my_callback); 
    then it works fine...

    thanks!

    EDIT

    this is the only line i added to shadow of the beast example
    my settings: vc9 compiler

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    That should work.

    Try adding that line into the basic2d example.

    (I cannot test it until at least monday)

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

    Default

    I am unable to reproduce this in latest 0.9 svn.

  4. #4
    Peasant
    Join Date
    Mar 2009
    Posts
    5

    Default

    my bad, i think the error was cased by my fault.. anyway here is how i reproduced it:

    Code:
    class App{
    public:
     CL_InputDevice mouse;
     (...)
                       int App::main(){
      			CL_InputContext ic = window.get_ic();
    			mouse = ic.get_mouse();
                            loop();
                      }

  5. #5
    Master Sorcerer
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    554

    Default

    Unfortunately ClanLib lacks a bit of resilience if objects aren't destroyed in the correct order. (In this case, the IC is destroyed after the window)

    We will fix this at some point, but its dreadfully boring to do and gives little satisfaction while doing it.

Similar Threads

  1. Zooming out causes crash in Linux
    By mikael in forum Novashell Game Creation System
    Replies: 2
    Last Post: 12-07-2008, 12:51 AM
  2. Game.exe crash
    By Viscos in forum Novashell Game Creation System
    Replies: 1
    Last Post: 11-16-2007, 11:12 PM
  3. 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
  4. nosound crash at startup
    By sphair in forum Novashell Game Creation System
    Replies: 1
    Last Post: 02-07-2007, 07:04 AM
  5. Crash when destroying a DisplayWindow
    By Wuntvor in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 09-19-2006, 07:31 PM

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
  •