Skip to content

ofAddListener() Hangs on eventExamples #61

Closed

Description

@push-pop

The event examples that add a custom event listener (ex: advancedEventsExample TestApp.cpp ln 13) hang in setup on ofAddListener().

I thought ofAddListener was called to set listeners for Mouse, Keyboard, etc... on the creation of the App?

Not sure then why it hangs on a custom event. Will be looking into it once I get debug builds working.

Activity

  1. bakercp commented on Dec 3, 2012

    @bakercp
    Member

    hi @push-pop, I'm actually working on this right now. Custom events are not working correctly across the board. They all create Poco Exceptions. Indeed, core event listeners (setup, update, exit, mouse, etc) seem to be working, but whenever custom listeners are added, we get exceptions. I believe this (and other threading issues) may be because poco was compiled without linking to the RPI's custom pthreads library ... thats my working theory at least. We'll see shortly!

  2. arturoc commented on Dec 4, 2012

    @arturoc

    the problem seems to be the version of poco, i've just compiled 1.4.3p1 and everything works without problem. will upload it in a moment

  3. bakercp commented on Dec 4, 2012

    @bakercp
    Member

    I also just got events working with the apt-get version of poco. @arturoc -- do you know of any differences between the 1.3 series (in the apt-get repo) and 1.4.3p1+ that we would need in oF?

  4. bakercp commented on Dec 4, 2012

    @bakercp
    Member

    Also, could you post your configure parameters for poco @arturoc? I'm curious to see how it differed from my original compile.

  5. arturoc commented on Dec 4, 2012

    @arturoc

    i didn't use anything special, just removed shared libraries, samples and tests to make compiling faster

  6. bakercp commented on Dec 4, 2012

    @bakercp
    Member

    Very strange. I did the exact same. I didn't ever try 1.4.3p1 though. I
    believe the current poco libs in develop-raspberrypi/linuxarmv6l is 1.4.4.
    And my attempt to get 1.4.5 to work yesterday didn't work either. If
    1.4.3p1 is working, it's a drop in replacement. Just for reference though,
    the debian poco 1.3 libs do work (at least for my initial tests), so that
    could be an good option in the future.


    http://christopherbaker.net

    On Tue, Dec 4, 2012 at 1:06 PM, arturo notifications@github.com wrote:

    i didn't use anything special, just removed shared libraries, samples and
    tests to make compiling faster

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/61#issuecomment-11010358.

  7. bakercp commented on Dec 4, 2012

    @bakercp
    Member

    fixed with #63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions