Microsoft KB Archive/131611

{| = PRB: Incorrect Number of Bytes Written to Disk =
 * width="100%"|

ID: Q131611

The information in this article applies to:


 * Microsoft FoxPro for Windows, version 2.6a

SYMPTOMS
You see this error message:

Incorrect number of bytes written to disk - source file or destination disk may be corrupted - use ChkDsk.

CAUSE
COMPRESS.EXE is an MS-DOS-based application that is called by the Setup Wizard. If there isn't enough conventional memory, the application fails and displays this error message.

WORKAROUND
Manipulate the DKSETUP.INI generated by the first run of the Setup Wizard. Change the value of SplitSize, doubling or quadrupling the given value of 363520. This eases the memory requirements for COMPRESS.EXE, giving it less to do.

Steps to Modify DKSETUP.INI
Each application built using SETUP.APP produces a DKSETUP.INI file in the application Source directory. In this file, find this entry:

SplitSize= 363520 Change this entry to one of the following: SplitSize= 727040

-or-

SplitSize= 1454080 If you use the 727040 setting, you will not be able to distribute low-density 5.25" disks, and if you use the larger 1454080 setting, you will not be able to distribute low-density 3.5" disks. After making this change, you can no longer distribute certain low-density disks, but you can build larger applications.

If your tables have a lot of data, you may want to use PKZIP to compress the files and add a separate data installation subroutine to your application, as described in the following article in the Microsoft Knowledge Base:

ARTICLE-ID: Q119284 TITLE    : How to Distribute a Large Database with an Application The Setup Wizard limits you to 10 disks. The information in Q119284 helps you work around that limitation.

STATUS
This behavior is by design.

Additional reference words: FoxWin 2.60a KBCategory: kbtool kbprb kberrmsg KBSubcategory: FxtoolDk
 * }