|
From: Stephen S. <rad...@gm...> - 2014-03-13 17:25:42
|
On Thu, Mar 13, 2014 at 6:11 PM, Tristan Matthews <le....@gm...> wrote: > On Thu, Mar 13, 2014 at 12:30 PM, Stephen Sinclair <rad...@gm...> > wrote: >> >> Hi Alex, >> >> I think it's probably because you're passing a C++ member function as >> the error handler, which is a normal C function pointer. Try making >> it a static function. You'll need to use the (relatively new) >> lo_server_set_error_context() function if you want to pass in the >> object pointer, retrieved via lo_error_get_context(). > > > It's already a static function (see the header file) so I think it's > probably something else. Ah you're right, sorry. Um, although I don't see anything in the code that actually handles the error condition. Is it possible it's just crashing because it assumes server_ is valid? Try setting a validity flag from the OscReceiver::error() function. > Alex can you make a backtrace of the segfault? That would help. Steve |