printf("Deleted jniobject\n");
protected:   virtual void Result(DvbSi::Request *re) {      printf("Received result %d\n", re->getResultCode());      JNI::ReturnType ret;      JNI::Thread::CheckAttachThread();      jnimethod.CallMethod((jobject)jniobject, ret, (jlong )this);      //this holds reference to jniobject, and this is deleted when      //jniobject is finalized, so if we don't delete the reference      //both won't be deleted.      jniobject.Delete();   }