On Tue, Mar 26, 2013 at 10:41 AM, sven falempin <sven.falem...@gmail.com> wrote:
> Never saw
> i was used to libevent 1
> when i switch to 2

My guess is that you're setting up these events before constructing an
event_base or calling event_init. That might have worked with libevent
1, but in libevent 2, you need to make sure every event has an
event_base.  The best way is to call one of the functions that creates
an event_base explicitly, and then use event_new or event_assign to
construct your events -- but you can still use event_init() and
event_set() like you did before, just so long as you call event_init()
first.

-- 
Nick
***********************************************************************
To unsubscribe, send an e-mail to majord...@freehaven.net with
unsubscribe libevent-users    in the body.

Reply via email to