iOS Question Problem with multiple returns in textView

pliroforikos

Active Member
Licensed User
Hello,
I have a strange problem with textView. I made a simple program to demostrate it. Here is the code:
B4X:
Sub Class_Globals
    Private Root As B4XView
    Private xui As XUI
    Private TextView1 As TextView
End Sub

Public Sub Initialize
'    B4XPages.GetManager.LogEvents = True
End Sub

'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("MainPage")
End Sub

'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.

Private Sub Button1_Click
    Log(TextView1.Text)
    Log("=====")
End Sub

I made a simple form with one button and one textView. The problem occurs when a press return many times in textView. The log file shows strange characters and in case of 4 or more returns it crashes with the bellow message.

I took some photos of the behavior .
In img1 and img2 everything is fine. In img3 something change and in img4 worst. With 4 or more returns it crashes.

Any ideas?
 

Attachments

  • img1.jpg
    31.4 KB · Views: 216
  • img2.jpg
    34.5 KB · Views: 204
  • img3.jpg
    33.9 KB · Views: 203
  • img4.jpg
    34.4 KB · Views: 217
  • Project.zip
    8.6 KB · Views: 206
Cookies are required to use this site. You must accept them to continue using the site. Learn more…