|
From: Stephen S. <rad...@gm...> - 2014-03-13 16:30:25
|
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(). ps., feel free to test-drive the new C++ bindings! Steve On Wed, Mar 12, 2014 at 5:20 PM, Alexandre Quessy <ale...@qu...> wrote: > Hello everyone, > I wrote several C++ applications that can receive OSC messages using liblo. > If the port is already in use, for example when I launch a second instance > of the same application on GNU/Linux, the application segfaults. > How can I avoid such a segfault? Is there a simple way to look for port > availability with liblo? Otherwise, I should need to use low-level system > calls? > > Here is my code: > https://github.com/mapmapteam/mapmap/blob/master/OscReceiver.cpp > > Thanks a lot, > -- > Alexandre Quessy > http://alexandre.quessy.net - Artiste en nouveaux médias > http://perte-de-signal.org - Membre de Perte de signal > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > liblo-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/liblo-devel > |