PDA

View Full Version : GEN1079 Text file line length > 1024



NewsArchive
12-06-2008, 02:30 AM
Hi Friedrich,

I'm getting this error on a RTF containing an EULA:

: error GEN1079: Text file line 16 is > 1024 bytes C:\... EULA.rtf. Please add a CR/LF

I'm not sure why it would care if a certain line in a RTF is longer than
1K... EULAs are notorious for very long lines so I'm not sure what I can
do... Well, I managed to find couple of periods that I could break some of
the paragraphs on and that worked;)

Best regards,

--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
12-08-2008, 02:00 AM
Hi Arnór,

> I'm getting this error on a RTF containing an EULA:
>
> : error GEN1079: Text file line 16 is > 1024 bytes C:\... EULA.rtf.
> Please add a CR/LF
>
> I'm not sure why it would care if a certain line in a RTF is longer than
> 1K... EULAs are notorious for very long lines so I'm not sure what I can
> do... Well, I managed to find couple of periods that I could break some
> of the paragraphs on and that worked;)

You only have to add a CR/LF to that line(s) and you are done. Open the
RTF, got to the line that is > 1024 bytes, bring your cursor to position
1,023 and press "Enter". This will not change the layout of your RTF ;-)

And see the Release Notes for SetupBuilder 7 (beta) <g>
http://www.lindersoft.com/HISTORYSB7.TXT

"IMPROVEMENT: IDE: Increase the maximum size of a line in a Rich Text Format
(RTF) document (supported in the License Agreement, Readme or RTF control in
a Custom dialog) from 1,024 bytes (1 KB) to 10,240 (10 KB)."

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
12-08-2008, 02:00 AM
Hi Friedrich,

> You only have to add a CR/LF to that line(s) and you are done. Open the
> RTF, got to the line that is > 1024 bytes, bring your cursor to position
> 1,023 and press "Enter". This will not change the layout of your RTF ;-)

I actually had to change several paragraphs to make this work. I have no
problem loading this RTF into MS Write or into a Clarion RTF control, so I
don't see why SB would have a problem with _any_ lenght of lines.

Best regards,

--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
12-08-2008, 02:01 AM
Hi Arnór,

>> You only have to add a CR/LF to that line(s) and you are done. Open the
>> RTF, got to the line that is > 1024 bytes, bring your cursor to position
>> 1,023 and press "Enter". This will not change the layout of your RTF ;-)
>
> I actually had to change several paragraphs to make this work. I have no
> problem loading this RTF into MS Write or into a Clarion RTF control, so I
> don't see why SB would have a problem with _any_ lenght of lines.

In one word: "Performance".

If you add a text resources to the installer, then the text is directly
compiled into the setup.exe. At runtime, this text has to be "processed"
(loaded if needed). If you have (nested) variables in a text resource then
the variables have to be resolved. The larger the text is, the longer does
it take to allocate memory, read the text into memory, resolve variables.

From the technical point of view, it's similar to the Windows PATH
Environment Variable Size limit. In general, the maximum individual
environment variable size is 8,192 bytes. The maximum total environment
variable size for *all* variables, which includes variable names and the
equal sign, is 65,536 KB. This Windows limitation is there for performance
reasons.

When we increased the custom variable size in SB7 from 1,024 to 10,240
bytes, the SetupBuilder installer processing time slowed down by a factor of
3! So we had to revamp the script processing engine. As a result, the
SetupBuilder 7 installer with the 10,240 byte variable capability is faster
than the SetupBuilder 6 installer with 1,024 byte variable size limitation.

I hope the above explains why there has to be a "limitation" :)

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
12-08-2008, 02:02 AM
> When we increased the custom variable size in SB7 from 1,024 to 10,240
> bytes, the SetupBuilder installer processing time slowed down by a factor of
> 3! So we had to revamp the script processing engine. As a result, the
> SetupBuilder 7 installer with the 10,240 byte variable capability is faster
> than the SetupBuilder 6 installer with 1,024 byte variable size limitation.

With results like that we should challenge you more often<g>

:-)

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
12-08-2008, 02:02 AM
>
> With results like that we should challenge you more often<g>
>

<BG> ;-)

Friedrich

NewsArchive
12-08-2008, 02:03 AM
Hi Friedrich,

> I hope the above explains why there has to be a "limitation" :)

YES - I did not realize it was compiled in as a string resource. I was
thinking it was in a memo or blob, but obviously I was thinking about the
SB* file, not the resulting .exe<bg> Sorry for the confusion:)

Best regards,

--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php