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: 301

rbsoft

Active Member
Licensed User
Longtime User
Does this error happen with the attached file as well (\r\n converted to \n)?

Yes, exactly at Line 1258.

(I installed Net 4.0 meanwhile - no change!)

Rolf
 
Upvote 0

rboeck

Well-Known Member
Licensed User
Longtime User
Hi,

i could not load the file showsong.bas
Message: An error occured. Error loading file. Der angegebene Schlüssel war nicht im Wörterbuch angegeben.

I tried now Vb 2010 express, loaded the file, copied it and could paste it in Basic4Android. I got 2042 lines of code, i had only 4 lines to remove at the beginning:
Type=Activity
Version=1.77
FullScreen=True
IncludeTitle=False
@EndOfDesignText@

I hope, this information is usefull!

Greetings from austria
Reinhard Böck
 
Upvote 0

pluton

Active Member
Licensed User
Longtime User
For me everything working fine. I can go down all to the end without problem and weird charachters.

My OS Win7
.NET screenshot


EDIT:
I will test it in half hour on my wife HP laptop with Windows XP
 
Last edited:
Upvote 0

joseluis

Active Member
Licensed User
Longtime User
It happens to me too.

b4a version: 1.78
NET version: v2.0.50727
os version: Win XP SP3
English language, spanish region.

Loading the file from post #21 (ShowSong.bas), text cuts at line 1258, same as rbsoft tells.

I also noticed that with the cursor keys I can go further down that line, and if I copy and paste some text (that I cannot see), then more lines appear, the last one being 1261. But it doesn't work well, really.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Does this error happen with the attached file as well (\r\n converted to \n)?

Sorry I've not been about this morning, this file appears OK on my set up XP SP3. Except that the - is missing from Sub Orientation Lock (As per Klaus' reply)
Net framework shows as:



EDIT for completeness: didn't work looked at the wrong version of B4A sorry
 
Last edited:
Upvote 0

pluton

Active Member
Licensed User
Longtime User
Here it is.
On my wife HP Compaq nx6325 everything is also OK
I have just installed B4A to test it because I don't work on her laptop

OS: Win XP
B4A Version: 1.78
Doesn't have android SDK installed
Doesn't have updated .NET framework

Screenshot of B4A


Screenshot of .NET framework
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
The previous file did not work properly (Looked at the wrong B4A Version sorry), still the same error. and pasting from a text editor made no difference.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Screen shot of pasting to a new project

 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Here's the module.
 

Attachments

  • ShowSong.bas
    56.4 KB · Views: 230
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
Just to make sure, you pasted the text to a new project and encountered the same issue, correct?

So did I.

Rolf
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
I've just loaded v1.78 into an XP SP3 virtual machine and can reproduce the problem. It doesn't occur under Windows 7 64 bit which is the native OS on my desktop.

The problem does not appear to be a loading problem but seems to be a display problem in the editor. When initially loaded the editor pane appears as in the screenshot in post #10. As I delete blocks of code in the "good" section of the editor above the "bad" line, previously "bad" code is now correctly formatted and displayed and the "bad" line has moved further down the code.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Yes I can confirm that I see the same behavior, except that I have to manually collapse and expand the subroutine to get it to display the new correctly reformatted lines.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…