Unintentional Limit in StringRequest()

Report any Hollywood bugs here

Unintentional Limit in StringRequest()

Postby PEB » Sat Sep 16, 2017 9:24 am

There seems to be a limit to the length of a string that can be received through StringRequest().
At least on OS4, that limit seems to be 1023.

I'm guessing that this is not intentional. Can it be fixed in the next version of Hollywood?
PEB
 
Posts: 156
Joined: Sun Feb 21, 2010 2:28 am

Re: Unintentional Limit in StringRequest()

Postby airsoftsoftwair » Mon Sep 25, 2017 6:45 pm

The problem is that on all Amiga platforms the string requester functions operate on static buffers so there has to be a limit. I could of course raise this to 4096 or to an even higher value. What do you need? On Windows, MacOS, and Linux the limit can of course be removed completely but on Amiga platforms there needs to be a limit.
User avatar
airsoftsoftwair
 
Posts: 2283
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: Unintentional Limit in StringRequest()

Postby PEB » Mon Sep 25, 2017 11:42 pm

I actually only need the limit removed on the Android version.
Since there's no RapaGUI option for Android, I'm using StringRequest() to allow the user to input text, edit, copy, and paste.
PEB
 
Posts: 156
Joined: Sun Feb 21, 2010 2:28 am

Re: Unintentional Limit in StringRequest()

Postby airsoftsoftwair » Tue Sep 26, 2017 7:38 pm

Okay, this is possible:

Code: Select all
- Change: StringRequest() had a limit of 1024 characters; on AmigaOS and compatibles Hollywood still
  imposes this limit but on all other platforms it has been removed
User avatar
airsoftsoftwair
 
Posts: 2283
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: Unintentional Limit in StringRequest()

Postby PEB » Tue Sep 26, 2017 11:59 pm

Thanks!
PEB
 
Posts: 156
Joined: Sun Feb 21, 2010 2:28 am


Return to Hollywood bugs

Who is online

Users browsing this forum: No registered users and 3 guests

cron