epiCode Active Member Licensed User Jul 7, 2021 #1 TTS1 fails to run in release mode and ends with (Exception) java.lang.Exception: java.lang.RuntimeException: Error speaking text. but it works fine in Debug mode when a breakpoint is created and IP reaches TTS1.Speak(text2read,False) Any idea of what I might be missing? TTS1 is initialized in Activity_Create and TTS1.Speak is called in a the module Button_clicked
TTS1 fails to run in release mode and ends with (Exception) java.lang.Exception: java.lang.RuntimeException: Error speaking text. but it works fine in Debug mode when a breakpoint is created and IP reaches TTS1.Speak(text2read,False) Any idea of what I might be missing? TTS1 is initialized in Activity_Create and TTS1.Speak is called in a the module Button_clicked
Erel B4X founder Staff member Licensed User Longtime User Jul 7, 2021 #2 Are you handling the Ready event? Upvote 0
epiCode Active Member Licensed User Jul 8, 2021 #3 Erel said: Are you handling the Ready event? Click to expand... I wasn't handling ready event. After handling ready event the java exception is gone but it only plays first message and skips the ones in queue. again, it plays "all" the messages in debug - step by step mode but in release mode it plays only the first one in queue. I'm writing the code all afresh - will share if the same issue happens again Upvote 0
Erel said: Are you handling the Ready event? Click to expand... I wasn't handling ready event. After handling ready event the java exception is gone but it only plays first message and skips the ones in queue. again, it plays "all" the messages in debug - step by step mode but in release mode it plays only the first one in queue. I'm writing the code all afresh - will share if the same issue happens again