PRB: Incorrect Number of Bytes Written to Disk

Last reviewed: June 27, 1995
Article 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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.