Hi, <br><br>Even if you aren't creating per-thread objects, java is when you register the thread. Two options I can see are:<br>1) tidy up before you return control - this would mean register the thread with java only while in your logging callback and unregister before returning. <br>2) Only log to java from a single thread and get the other threads to queue the log messages up in some global object. <br><br>I expect my second option is actually the most practical. You can have a thread then runs as long as any task is running and just pulls log messages out of the queue and posts them to java. <br><br>Hope that's helpful. <br><br>Simon <br><br>Sent from my Huawei Mobile