Editor file size limit?
Archiver
Posts: 46,084
I am having problem adding new code using cut and paste - the file
does not get saved in a readible format and becomes inaccesible to
the Parallax editor ( using 2.0 beta ), MS VSS and Windows Explorer.
I asked Parallax customer service for help and now I am posting it
here also.
In between my posts I noticed that my source file is near 64kb.
Is there a limit of 64kb on size of the source file?
I hope not.
Vaclav
does not get saved in a readible format and becomes inaccesible to
the Parallax editor ( using 2.0 beta ), MS VSS and Windows Explorer.
I asked Parallax customer service for help and now I am posting it
here also.
In between my posts I noticed that my source file is near 64kb.
Is there a limit of 64kb on size of the source file?
I hope not.
Vaclav
Comments
aa7ej@y... writes:
> Is there a limit of 64kb on size of the source file?
> I hope not.
>
The size limit of a program you can write with the Editor depends on the
available memory in the Stamp you specified with a directive.
The BS2 can handle 2Kb, so that means your source file can be 2Kb.
[noparse][[/noparse]Non-text portions of this message have been removed]
that the source file size cannot exceed 64kb! The editor DOES NOT
give me any indication that the SOURCE code is larger than 64kb and
it WILL make the source file unusable for VSS, Windows Explorer and
Parallax editor itself if you try to "Check Syntax" or "Memory Map"!
I am talking about source file - not the tokenized executable which
is limited to 2kb per slot. But it never gets there!
The following code will fail!
'{$STAMP BS2p,Test1,Test2.Test3,Test4,Test5,Test6,Test7}
'{$PBASIC 2.5}
INDEX VAR Word
' comments
.....same line repated enough times to exceed the source file size of
64kb
' comments
FOR INDEX = 0 TO 100
NEXT
The reason my files are so big - I include documentation with my code
and lots of comments! My current workaround is to have another
project just for documentation - weird but it is working so far.
Any other (serious) suggestions?
PS I have contacted Parallax customer service and have not received
their answer yet, only a note that they do not use MS Visual
SourceSafe.
limit of the Windows 9x edit control. For example, Notepad on 98 can't open
files >64K but Windows NT/2000/XP's Notepad can. Not that you can't write an
editor that handles >64K on 9x, but if they are using the RichEdit control,
it is probably an OS limitation. Just a guess though.
Regards,
Al Williams
AWC
*NEW: 3 years of Stamp Project of the Month:
http://www.al-williams.com/sombook.htm
>
Original Message
> From: aa7ej [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=cGqcO1SbJ23eZcQ0LM0XCmXAryOVhObzlXBJS-HoYe7a62grIMPBSiJEWYr10gKbgDggRb0L]aa7ej@y...[/url
> Sent: Thursday, November 06, 2003 6:27 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: Editor file size limit?
>
>
> I can duplicate this behavior at will and have came to the conclusion
> that the source file size cannot exceed 64kb! The editor DOES NOT
> give me any indication that the SOURCE code is larger than 64kb and
> it WILL make the source file unusable for VSS, Windows Explorer and
> Parallax editor itself if you try to "Check Syntax" or
> "Memory Map"! I am talking about source file - not the
> tokenized executable which
> is limited to 2kb per slot. But it never gets there!
>
> The following code will fail!
>
> '{$STAMP BS2p,Test1,Test2.Test3,Test4,Test5,Test6,Test7}
> '{$PBASIC 2.5}
> INDEX VAR Word
>
> ' comments
> .....same line repated enough times to exceed the source file size of
> 64kb
> ' comments
>
> FOR INDEX = 0 TO 100
> NEXT
>
> The reason my files are so big - I include documentation with
> my code and lots of comments! My current workaround is to
> have another
> project just for documentation - weird but it is working so far.
>
> Any other (serious) suggestions?
>
>
>
> PS I have contacted Parallax customer service and have not received
> their answer yet, only a note that they do not use MS Visual
> SourceSafe.
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
> Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
But you have a good point.
Regardless, even if it is OS dependent I would not expect the editor
to just quit like it is doing, without any error indication.
Very dangerous.
Vaclav
The BS2 can handle 2K bytes of compiled PBasic
tokens. This is WAY more than '2k of source'. In
theory, I could write a huge file of comments
and aliases, and wind up with very little actual
downloadable code.
Every statement, like 'PAUSE 1000', gets
compiled into tokens -- in this case, 1
for 'Pause', and 1 for '1000'. Thus 10
bytes of source compiles into 2 bytes in the
BS2.
There may still be a 64K limit on source
file size -- the 1.33 IDE was written 'long
ago' after all.
--- In basicstamps@yahoogroups.com, Newzed@a... wrote:
> In a message dated 11/6/2003 6:25:11 PM Eastern Standard Time,
> aa7ej@y... writes:
>
>
> > Is there a limit of 64kb on size of the source file?
> > I hope not.
> >
>
> The size limit of a program you can write with the Editor depends
on the
> available memory in the Stamp you specified with a directive.
>
> The BS2 can handle 2Kb, so that means your source file can be 2Kb.
>
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
this sort of thing -- writing a program using
the built-in controls, which work fine until
some limit is reached, then fail without
saying anything.
I appreciate your approach of embedding source
and comments in one place -- this makes it
more likely they will stay in sync with
each other.
It's most likely a windows control limitation,
(ie the edit control being used) more than
the OS version.
One solution: Write a small program to take
in your full source, and create a new file with
a reduced number of comments. So you'll wind
up with a file with all comments removed
(or most comments, or multi-line comments...)
Then submit the reduced compileable source to
the IDE.
You'll have to use some other editor (like PFE,
for instance, which will edit 2 Megabyte files)
to maintain your 'full' source, but this will
let you limp along.
--- In basicstamps@yahoogroups.com, "aa7ej" <aa7ej@y...> wrote:
> I can duplicate this behavior at will and have came to the
conclusion
> that the source file size cannot exceed 64kb! The editor DOES NOT
> give me any indication that the SOURCE code is larger than 64kb and
> it WILL make the source file unusable for VSS, Windows Explorer and
> Parallax editor itself if you try to "Check Syntax" or "Memory Map"!
> I am talking about source file - not the tokenized executable which
> is limited to 2kb per slot. But it never gets there!
>
> The following code will fail!
>
> '{$STAMP BS2p,Test1,Test2.Test3,Test4,Test5,Test6,Test7}
> '{$PBASIC 2.5}
> INDEX VAR Word
>
> ' comments
> .....same line repated enough times to exceed the source file size
of
> 64kb
> ' comments
>
> FOR INDEX = 0 TO 100
> NEXT
>
> The reason my files are so big - I include documentation with my
code
> and lots of comments! My current workaround is to have another
> project just for documentation - weird but it is working so far.
>
> Any other (serious) suggestions?
>
>
>
> PS I have contacted Parallax customer service and have not received
> their answer yet, only a note that they do not use MS Visual
> SourceSafe.
It's beginning to make sense.
I am using V2.0 beta 2.1 and would expect some strange behavior (from
beta), but this is dangerous because you actually loose you work!
I suppose this was "dormant" because " real programmer does not write
comments"!
Actually your idea is very good, but it would be real neat if one
could write a macro to accomplish that (hint hint Parallax gurus).
While I am at it - Parallax - how about "block comments" feature like
VB does?
Also why is there menu item "New page" in editor when it actually
creates new file?
Vaclav
of text. The text would "disappear" if you tried to make your remarks
too long on one line.
> It's beginning to make sense.
> I am using V2.0 beta 2.1 and would expect some strange behavior (from
> beta), but this is dangerous because you actually loose you work!
> I suppose this was "dormant" because " real programmer does not write
> comments"!
> Actually your idea is very good, but it would be real neat if one
> could write a macro to accomplish that (hint hint Parallax gurus).
> While I am at it - Parallax - how about "block comments" feature like
> VB does?
> Also why is there menu item "New page" in editor when it actually
> creates new file?
time to write a shorter letter." Since the entire file gets passed to
the compiler engine it does, indeed, have a 64k limit. While there is
always a place for comments, there may be style opportunities that
enable you to write code without comment which will save source file
space.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: aa7ej [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=1zzRlcYDvAE3YIyN4eG0BwN5PfmkgW7NmgQTUGBi5frgKsx9zh2N-GoycUW-xiXiHNd6mAAA]aa7ej@y...[/url
Sent: Thursday, November 06, 2003 6:27 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Re: Editor file size limit?
I can duplicate this behavior at will and have came to the conclusion
that the source file size cannot exceed 64kb! The editor DOES NOT
give me any indication that the SOURCE code is larger than 64kb and
it WILL make the source file unusable for VSS, Windows Explorer and
Parallax editor itself if you try to "Check Syntax" or "Memory Map"! I
am talking about source file - not the tokenized executable which
is limited to 2kb per slot. But it never gets there!
The following code will fail!
'{$STAMP BS2p,Test1,Test2.Test3,Test4,Test5,Test6,Test7}
'{$PBASIC 2.5}
INDEX VAR Word
' comments
.....same line repated enough times to exceed the source file size of
64kb
' comments
FOR INDEX = 0 TO 100
NEXT
The reason my files are so big - I include documentation with my code
and lots of comments! My current workaround is to have another
project just for documentation - weird but it is working so far.
Any other (serious) suggestions?
PS I have contacted Parallax customer service and have not received
their answer yet, only a note that they do not use MS Visual
SourceSafe.
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
wrote:
> I believe it was Blaise Pascal who said, "I'm sorry I didn't have
enough
> time to write a shorter letter." Since the entire file gets passed
to
> the compiler engine it does, indeed, have a 64k limit. While there
is
> always a place for comments, there may be style opportunities that
> enable you to write code without comment which will save source file
> space.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: aa7ej [noparse][[/noparse]mailto:aa7ej@y...]
> Sent: Thursday, November 06, 2003 6:27 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: Editor file size limit?
>
>
> I can duplicate this behavior at will and have came to the
conclusion
> that the source file size cannot exceed 64kb! The editor DOES NOT
> give me any indication that the SOURCE code is larger than 64kb and
> it WILL make the source file unusable for VSS, Windows Explorer and
> Parallax editor itself if you try to "Check Syntax" or "Memory
Map"! I
> am talking about source file - not the tokenized executable which
> is limited to 2kb per slot. But it never gets there!
>
> The following code will fail!
>
> '{$STAMP BS2p,Test1,Test2.Test3,Test4,Test5,Test6,Test7}
> '{$PBASIC 2.5}
> INDEX VAR Word
>
> ' comments
> .....same line repated enough times to exceed the source file size
of
> 64kb
> ' comments
>
> FOR INDEX = 0 TO 100
> NEXT
>
> The reason my files are so big - I include documentation with my
code
> and lots of comments! My current workaround is to have another
> project just for documentation - weird but it is working so far.
>
> Any other (serious) suggestions?
I'm not sure what you considder serious, but I program G-Code for my
CNC machine by writing it in Excel. I write in the first couple of
colunms so as to take advantage of the math functions, then
concatenate the works into a single cell.
That means I choose what goes in and what does not.
Although I have not tried this, it may be possible to import you code
to Excel and seperate all the comments off the program. then copy
what is left back.
yes it is a sloppy work around, but would allow you all the comments
you wanted in the ONE origional file and the smallest file to program
with.
contact me off list if you want some help with this.
Dave
longer around -- the editor does have a 64k limit though as that is all
that the compiler portion can accept as a parameter.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Bill Boyer [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=sR_rREiInzp6TCmOx4r9knv04_d5BaoUcJFyiBOlqlNCpscduneOFubHccOtBly70sDLK64hFebo]daweasel@s...[/url
Sent: Friday, November 07, 2003 8:00 PM
To: Basic Stamp List
Subject: Re: [noparse][[/noparse]basicstamps] Re: Editor file size limit?
There is or was an issue with the Stamp Editor concerning too-long lines
of text. The text would "disappear" if you tried to make your remarks
too long on one line.
> It's beginning to make sense.
> I am using V2.0 beta 2.1 and would expect some strange behavior (from
> beta), but this is dangerous because you actually loose you work!
> I suppose this was "dormant" because " real programmer does not write
> comments"!
> Actually your idea is very good, but it would be real neat if one
> could write a macro to accomplish that (hint hint Parallax gurus).
> While I am at it - Parallax - how about "block comments" feature like
> VB does?
> Also why is there menu item "New page" in editor when it actually
> creates new file?
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....