Re: Multithreading and async callback - segault

2011-05-16 Thread th exterit
The problem is calling snmp_sess_close() inside the callback function. You have to wait for snmp_sess_read() to finish before calling snmp_sess_close(). Problem solved. On Sat, May 14, 2011 at 10:58 AM, th exterit wrote: > Hi there. > > I have two threads. The main thread sends snmp requests,

Multithreading and async callback - segault

2011-05-14 Thread th exterit
Hi there. I have two threads. The main thread sends snmp requests, the other receives responses. And I can only use snmp_sess_*() calls since it is multithreaded. I want to be able to send requests and forget about them until a response is detected on the socket. I want to do this so that I do