Solved

Packed File Corrupt / Loadfix for Win95

Posted on 1997-08-24
3
346 Views
Last Modified: 2013-12-29
I have a program that I've been using with DOS & Win31 that need 'Loadfix' to be used prior to the program name when exectuting it to load it past the first 64k in Dos memory.  This unfortunately does not work in windows 95.  I've seen an option for Win NT, but nothing for 95.. Any way to get this to work?

Randy Katz
0
Comment
Question by:rkatz
3 Comments
 
LVL 1

Expert Comment

by:arh
ID: 1695451
Win 95 Resource Kit says:

The following commands are not included with the basic Windows 95 files:
.. many commands skipped
      loadfix 1      
.. many, many commands skipped
1      This command is available in the OTHER\OLDDOS directory on the Windows 95 compact disc.

I don't have now win95 CD handy to check if this is true.
0
 
LVL 9

Accepted Solution

by:
magigraf earned 200 total points
ID: 1695452
QEMM-386, QEMM-50/60, and QRAM, because of their ability to load device drivers and TSRs into High RAM, can make more conventional memory available to programs. With the advent of MS and PC DOS version 5.0 even more conventional memory can be made available by loading the DOS kernel into the HMA. As a result, less of the conventional memory area is occupied than ever before. With the operating system, its device drivers and other resident programs all loaded into memory above 640K, applications can load into lower areas of memory, areas previously occupied by DOS and its device drivers.
This sometimes causes an error message "Packed file is corrupt" when certain programs are run from the DOS command line or in a DESQview window. The source of this error message is the EXEPACK program from Microsoft. EXEPACK is a utility provided with Microsoft's Macro Assembler development package.
The purpose of EXEPACK is to reduce the file size of the finished executable by compressing the data contained in it and prepending a small decompression routine to the beginning of the program file. When an EXEPACKed program is run, this decompression routine unpacks the program into memory, and then passes control to the beginning of the actual program, which then continues to run normally.

EXEPACK will generate a spurious "Packed file is corrupt" error message if it finds itself loaded at a starting address below the first 64K of conventional memory (note: 64K, not 640K), and the A20 line is enabled, which it must be to use the HMA (as in "DOS=HIGH") or extended memory. This is a common occurrence in
today's DOS 5.0 and QEMM-386 environment. Microsoft provides a fix for this situation in a small utility included with DOS 5.0: LOADFIX.COM. LOADFIX is invoked with the program to fix as the sole parameter. Its only function is to occupy the first 64K of conventional memory, forcing the program it is "fixing" to load
above that area, thereby avoiding the "Packed file is corrupt" error message.

If you need LOADFIX, give your e-mail, and I'll send it to you!
Let me know!
0
 

Author Comment

by:rkatz
ID: 1695453
Unfortunately, using LOADFIX does not solve the problem.  I assume it is incompatible with the Win95 dos Shell.  I even tried typing 'command' several times which is supposed to lower DOS memory starting in the beginning. Since I saw a message on microsoft's tech server talking about a verison of LOADFIX for Win NT, I would assume it must have been modified to work there, but they make no mention of it for Win95..

0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question