From: Pavel S. <dz...@gm...> - 2013-08-09 14:35:48
|
Hi all, Can you please help me. My problem described on http://stackoverflow.com/questions/18137991/using-method-parameters-in-anonymous-class-causes-sigsegv. Shortly: @Override public void OnMessage(final Message msg, final long answerTo) { Log.i(TAG, msg.ToStr()); // OK handler.post(new Runnable() { @Override public void run() { Log.i(TAG, msg.ToStr()); // Fatal signal 11 (SIGSEGV) // at 0x74616862 (code=1), thread 13255 } }); } Message is object of SWIG generated class (not android.os.Message). OnMessage - overriden method of SWIG generated class that uses director. OnMessage called from native thread, Message created in another native thread. handler lives in main Android UI thread. All native threads are long living and registered with AttachCurrentThread. -- Pavel Sergeev |