WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Compiler
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Encode Error - Input File Too Big

Keywords: encode error input file too big compiler filesize  file size 

Question:

I've got a WBT file ~107KB. When I try to compile it into a .wbc it gives me a "encode error - input file too big". Huh? I thought we only had a limit to how big the interpreted .wbt file was when running it?

Answer:

In general the limit is 64K in versions of Winbatch prior to 99A. However, the compiler takes a pass on your WBT file and removes most comments and dead white space (indented code), reducing the filesize. If the resulting filesize is under 64K, then it can compile it.

So the optimization pass was reducing your 107K program to 64K and working, till you added that last line of code.

Question:

Are there any plans to increase the maximum size of a winbatch script from 64K? I know that I can "modulize" my code into several smaller chuncks, but still are there any plans to increase the 64K size?

Answer:

In versions of Winbatch starting with 99A and later, Winbatch is not hindered by this limitation.

In the older versions, it helps to remove extraneous info like leading spaces, comments etc. etc., to slim the file down so it works. Short variable names help too. For example, our setup.exe program is a 93K script that compiles down to about 55K.

To modulize your WBC files:

There are a few cute tricks to build WBC files into a BIGEXE if desired. Sorta works.

  1. Put wbc files in winbatch system directory.

  2. Make a file like:
    MYSTUFF.DAT <--- DAT extension is required
    
    ;----snip
    My WBC Library
    lib1.wbc,lib2.wbc,other.wbc,more.wbc
    ;-------snip
    
And then you can add them to big exes as your own kind of extender.
Article ID:   W12784
Filename:   Encode Error - Input File Too Big.txt
File Created: 2000:05:22:11:06:32
Last Updated: 2000:05:22:11:06:32