Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / BlueGUI Limitation

Author
Message
Keaz
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 26th Jul 2005 10:05
Is there a limitation on the size of the string that can be handled by an edit gadget?
EX:
When I load a large text file in Paddy 1.0 it won't let me add to it unless I delete from it first. I remove 5 characters and then I can add 5, but a new document doesn't seem to have the limitation.

Can anyone help?

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 26th Jul 2005 21:43
Quote: "Is there a limitation on the size of the string that can be handled by an edit gadget?"


If I remember correctly edit gadgets under Windows 98 are limited to 64K of text. Under Windows XP this limit is much larger (limited only by available memory in effect).

If you are having problems, try using a RichEdit gadget instead.


BlueGUI Windows Plugin
Keaz
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 26th Jul 2005 23:00 Edited at: 26th Jul 2005 23:10
I am using a RichEdit gadget I modified Paddy to do that. Let me clarify the problem. I open a document with about 1300(in this case only 44Kb) lines of code. It opens fine, but it won't let me add to it. However, for every character I delete, I can add one back in, but I can't make the file any larger. That being said I can edit a new document as much as I want even with the other file open.

[edit]
I've tested it further and it occurs somewhere between 33,236 bytes and 34,239 bytes in file size. I will try to narrow it more if that wil help.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Keaz
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 26th Jul 2005 23:19
It may be a string size limitation. This is rather befuddling and another thing I need to fix for my app...

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Keaz
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 26th Jul 2005 23:33 Edited at: 26th Jul 2005 23:35
I did a little more testing with non-Blue code
and this fails. It should make and write to a file a 40Kb string. It makes the string ok, but won't write it to a file. So I'm figuring it's a DB limitation not a Blue limitation. I will post this in the Bug Forum If it can be verified.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 27th Jul 2005 03:52
Yes, DBpro still can't write large strings to files. The string needs to be separated or turned into a memblock

For anyone reading this later, see the functions 'make_file_from_string(' and 'write_unending_string(' here:
http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1

-Xol

Ion Extension: 46 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
Keaz
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 27th Jul 2005 08:17
@Rob K
To demonstrate my current issue. Compile Paddy and change the createEdit to a createRichEdit (remove the multiline flag). Then open the attached text file. It's just under the gadget size limit. That is it will only let you add about 5-10 characters to the end of it. It won't save, but that's a DBPro issue.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Keaz
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 27th Jul 2005 08:19
It's seems the gadget is created with a buffer of about 32830 bytes, but can be resize by importing a bigger file. This is strange.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 27th Jul 2005 11:52
Yes, I noticed this after trying the same thing, after it was pointed out to me on my WIP thread. If importing a larger file simply puts a bigger string in place, perhaps the program could write s string with 'space$(big_number)' to the gadget, causing the buffer to be raised.

-Xol

Ion Extension: 46 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 27th Jul 2005 22:16 Edited at: 27th Jul 2005 22:22
Keaz, I'VE SOLVED IT !!!
Change this line in paddy

to these lines:

And see what the new limit is :


Using this, the IDE could have the user specify the size allowed for each source file, probably in megabytes, and use space$(MBs*1024*1024), then set it back to ""
Of course, this setting would require the IDE to restart, because the limit cannot be lowered this way.

Hope this fixes our problems!

-Xol

Ion Extension: 46 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
Keaz
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 27th Jul 2005 22:31 Edited at: 27th Jul 2005 22:33
It does help and RobK is going to work on the horizontal scrollbar functionality. Thx again. I'll prolly a a buffersize to the preferences menu(not implemented yet).

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 27th Jul 2005 23:24
Thanks, Rob K! - a horizontal scrollbar will be great (I won't have to try to make line numbers recognize when al line is wriapped onto 2).

-Xol

Ion Extension: 46 DBp functions: http://forum.thegamecreators.com/?m=forum_view&t=57481&b=1
IonRay IDE for DBPro in progress
Keaz
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 28th Jul 2005 07:52 Edited at: 28th Jul 2005 09:16
[Edit]Put it in the wrong place!

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 28th Jul 2005 08:12 Edited at: 28th Jul 2005 08:12
Keaz, I think you got you're threads mixed up
Perhaps edit this post and repost here:

http://forum.thegamecreators.com/?m=forum_view&t=57824&b=18)

-Xol

Login to post a reply

Server time is: 2024-05-05 23:37:51
Your offset time is: 2024-05-05 23:37:51