|
Post by xxgeek on Jul 31, 2023 13:00:36 GMT -5
"String is too big to fit into the clipboard. Do you wish to continue anyway"
I hope someone has the answer to this strange problem.
When I copy all the code from the LB IDE I sometimes get that message, and am forced to copy half at a time to post here.
When I copy that same code from here, I don't get that message, and ALL the code gets copied/pasted, no issues.
If anyone has experienced this problem and remembers how to fix it, please share.
I have tried adjusting my page file larger, made it static, removed it altogether, no luck. I have plenty of ram too (24GB) I used to spend my days tweaking windows, but have grown away from that over the years.
This is an annoying problem I am sure can be fixed with a regedit, or a slight tweak somewhere.
|
|
|
Post by Walt Decker on Jul 31, 2023 15:52:23 GMT -5
I have never received that message, but then I do not copy from the IDE. I open either notepad or wordpad, load the LB code, then do a complete copy from there. The reason I do not copy from the IDE is when doing a full copy the IDE does not scroll to the end, just one visible page. I do not like that.
PS: I am sure you can code rings around me. I am not good, just a helamonster. Play with the opengl code. That is what I do when I find code I do not understand.
|
|
|
Post by xxgeek on Aug 1, 2023 9:19:36 GMT -5
Thanks for the reply Walt.
I get that message when a file exceeds a certain size. I calculated it once a while ago, but forget now, about 2mb or so I think.
Notepad doesn't give me that message on large files though. Haven't noticed it in any other apps either. Seems to be a JB/LB thing. Possibly a 32bit file/clipboard size limit issue?
|
|
|
Post by atomose on Aug 2, 2023 14:03:00 GMT -5
i have the same problem with big code (>2000 lines).
Solution : open your .bas with notepad and you can copy it ^^.
|
|
|
Post by Walt Decker on Aug 2, 2023 14:04:32 GMT -5
I suspect it is an LB thing. Remember that the LB IDE is a custom control. It may be that, being a custom control, it imposes a limit on the copy text length. It may have something to do with functions CODESTRING$ and CODEFILE$. CODESTRING$ imposes a big hit on available memory. If you have two instances of the IDE active, both with the same file loaded, the code you write/modify in one automatically appears in the other.
For large files, I would definately load the file into a different text editor for copy/paste.
|
|
|
Post by tsh73 on Aug 2, 2023 15:06:28 GMT -5
I did some tests There is a limit but number of characters depends on number of new lines, which seems weird. So limit is somewhere above 66000 but before 67000
actually for this data, 67000-8, 66992 characters (each line with CR LF is 99 characters, line with number gets it to 1000 characters. I can select only 2 spaces on a last line, after that it does not fit to clipboard )
actually it depends on line breaks Then I split each line in two, I could copy 68344 (but cannot 68390) difference is 68344-66992 = 1353 Should be somehow related to number of lines? (1436 with split lines, 738 with 97 character lines) Like, splitting line adds some space (2x number of added lines ). May be in the clipboard, CR LF is not counted / stored as single character?? 'run this program and press Ctrl-A in the mainwindow 'it works for 66 (66000 characters) 'but produces error message for 67 (67000 characters) ' "String is too big to fit into the clipboard. Do you wish to continue anyway" for i = 1 to 66'67 c$=chr$(asc("a")-1+i) a$="" for k = 1 to 97 a$=a$+c$ next for j = 1 to 10 print a$ next print using("########",i) '8*# and CRLF, with this line, total 1000 chars next
|
|
|
Post by tsh73 on Aug 2, 2023 15:19:41 GMT -5
If I do make long single line (of spaces)
for i = 1 to 32'33 'single line. 32000 OK, 33000 - "String is too big to fit into the clipboard. Do you wish to continue anyway" a$=space$(100) for j = 1 to 10 print a$; next next
|
|
|
Post by Rod on Aug 3, 2023 3:34:52 GMT -5
This really isn't the same error but we have come across the edit control limit before. The Windows edit control used by Liberty has a default limit of 32k characters.
|
|
|
Post by xxgeek on Aug 3, 2023 9:51:10 GMT -5
Well, thanks for all the replies. I was hoping a little regedit would do the trick. It seems it is a JB/LB thing and we'll have to live with it, or use a work around like notepad to copy larger files. I'll probably just do as I have been and copy half at a time. walt I never noticed that before. So, I played around testing it out. It copies to the 'other' open IDE of same file/name if and when it is 'saved', but not as you type. I can have from 10-20 even 30 or so IDE windows open at one time of JB and LB while testing. It can get a bit confusing, but now that I know this tidbit, I understand some of the issues I've been having. I thought it was my memory playing tricks on me. Thanks for posting it. I found that the limit on the average .bas file is approx 66 kilobytes and according to Anatoly and Rod depending on the contents it can go as low as approx 32 kilobytes?
|
|