Beta 1.77 large code modules

stevel05

Expert
Licensed User
Longtime User
I attach a file that has a large code module (taken from an app so it won't compile as is) but it shows a problem with the large code module.

When I load it I can see down to line 1258, if I click the - sign it shows more lines but incorrectly formatted.

Keep clicking the - or + if it changes and things start to get weird.
 

Attachments

  • edittest.zip
    16.1 KB · Views: 302

Erel

B4X founder
Staff member
Licensed User
Longtime User
Can you post a screenshot? It seems to work fine here.

SS-2012-01-10_08.59.39.png
 
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
Yes, I have the same problem with the above project. Problems start with line 1258. I cannot scroll any further down.

(See attached screenshot)

I opened the file in PSPad (see screen shot 2) and there line 1258 appears as line 1263.

Rolf
 

Attachments

  • scrnshot.jpg
    scrnshot.jpg
    28.8 KB · Views: 265
  • scrnshot2.jpg
    scrnshot2.jpg
    29.5 KB · Views: 253
Last edited:
Upvote 0

klaus

Expert
Licensed User
Longtime User
Works fine for me.
Just one point, for Sub OrientationLock_Click the - sign is missing.
There is a Tab sign between Sub and Orientation_Click.
Removing the Tab and replacing it by a space works as expected.

Best regards.
 

Attachments

  • Test.jpg
    Test.jpg
    60.3 KB · Views: 265
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
OK, here they are!

Rolf
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Seems like the whole missing text is appended to the last line. You can horizontally scroll the view to see it (I'm guessing as I'm still unable to reproduce it).

@rbsoft can you please try to play with it and see if you are able to add more lines before this line, or delete this line and see if something changes?
 
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
Yes, that is exactly the case.
 
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
Adding lines before is possible. It is the same line where the problem remains.
 

Attachments

  • scrnshot3.jpg
    scrnshot3.jpg
    30.2 KB · Views: 255
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
I am using Windows XP Pro SP3, normal DPI settings. Regional settings are German.

I do not know what the B4A editor is based on (maybe Scintilla or so). Could it be that another editor based on the same runtime causes the problem? (Just an idea...)

Rolf
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Could it be that another editor based on the same runtime causes the problem? (Just an idea...)
The editor is based on a third party component which is included in the project. Other editors cannot affect it.

Please see if you can reproduce it with a different project. Just select all and do some copy & pasting.
 
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
It's kind of weird. I created a new project, added a code module, and pasted some subs from other projects into it. Here the problem starts at line 1281 (see scrnshot). The file size is sufficient smaller, 37 compare to 57 kb.
 

Attachments

  • scrnshot4.jpg
    scrnshot4.jpg
    19.3 KB · Views: 239
Upvote 0

agraham

Expert
Licensed User
Longtime User
This is very odd. In your screenshot in post #10 there is a box character where the problem appears to start indicating an unknown character. However looking with a hex editor I see nothing wrong at that point in the file and it behaves properly for me in the IDE.

The line number difference between the IDE and another text editor is expected as there are additional information lines at the beginning which the IDE doesn't count as program lines.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I get the same problem on my 'old' computer with Windows XP SP3.
Also with the SQLiteDB and the GPSExample programs.
It seems that with files bigger than ~33kbytes the problem appears.
I copied the code until the last corect line from the big files into a new module.
In two examples the file size of these modules is about 33kbytes.

Best regards.
 
Last edited:
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
Version 3.5

I see you have v4.0 installed.
 
Upvote 0
Top