Hello, my Xamarin App (C#) had this error for almost 3 days now. When I do "speechrecognizer.StartListening()"
private void switchSearch(string searchName)
{
speechrecognizer.StopListening();
// If we are not spotting, start listening with timeout (10000 ms or 10 seconds).
if (searchName.Equals(KWSS_SEARCH5))
speechrecognizer.StartListening();
else
speechrecognizer.StartListening();
}
It crashes. I debugged it and analysed where it crashes. It crashes right here, at the "JNIEnv.CallVoidMethod "
staticIntPtrid_startListening;// Metadata.xml XPath method reference: path="/api/package[@name='edu.cmu.pocketsphinx']/class[@name='SpeechRecognizer']/method[@name='startListening' and count(parameter)=0]"[Register("startListening","()V","GetStartListeningHandler")]publicvirtualunsafevoidStartListening(){if(id_startListening==IntPtr.Zero)id_startListening=JNIEnv.GetMethodID(class_ref,"startListening","()V");try{if(((object)this).GetType()==ThresholdType)//crash***JNIEnv.CallVoidMethod(((global::Java.Lang.Object)this).Handle,idstartListening);***elseJNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object)this).Handle,ThresholdClass,JNIEnv.GetMethodID(ThresholdClass,"startListening","()V"));}finally{}}
Im clueless and I need your help. Thanks in advance , keep it up!
Hello, my Xamarin App (C#) had this error for almost 3 days now. When I do "speechrecognizer.StartListening()"
It crashes. I debugged it and analysed where it crashes. It crashes right here, at the "JNIEnv.CallVoidMethod "
Im clueless and I need your help. Thanks in advance , keep it up!
EDIT:
The ERROR Message itself
Last edit: Hans Jamse 2017-07-28