home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / textinfo / drtips.arj / 1602.TXT < prev    next >
Encoding:
Text File  |  1991-11-26  |  20.6 KB  |  391 lines

  1. Document 1602
  2. Windows 3.0
  3.  
  4. Initials:
  5.     RJR
  6.         11/26/91
  7.     DRDOS 6.0
  8.  
  9. Keywords:
  10.         WINDOWS
  11.         EMM386.SYS
  12.         HIDOS.SYS
  13.         MEMORYMAX
  14.         DISKMAX
  15.         SUPERPCK
  16.         SUPERSTOR
  17.  
  18. Description:
  19.  
  20.  Overview
  21.  
  22. This document tries to address many of the questions that we have
  23. received regarding Windows compatibility. DR DOS 6 is compatible with
  24. Windows 3.0 and 3.0A in all 3 modes. DR DOS 6 is a feature rich
  25. operating system and many of the utilities that are a part of DR DOS
  26. have special configuration requirements when running with Windows. This
  27. document will address DR DOS 6 installation and those utilities most
  28. commonly used with Windows and how to configure them for optimum
  29. performance. Also because end-users will have various hardware
  30. configurations we will also discuss what type of hardware requirements
  31. are necessary to properly run Windows. Finally, there will be a list of
  32. the most common problems detected and how to correct them.
  33.  
  34.  Windows' Requirements
  35.  
  36. Microsoft Windows 3.0 is designed to run on only 286, 386SX, 386 and
  37. 486 computers. It has 3 modes of operation. The most basic is called
  38. Real Mode. This mode will run with only 640K of RAM but it will also
  39. make use of EMS memory if available. The EMS memory can be provided
  40. with either a third party memory manager or via EMM386.SYS. Real Mode
  41. is also used to create or delete Windows permanent swap files which we
  42. will discuss later. Windows Standard mode requires there be at least 1
  43. Megabyte of total memory and the presence of an XMS memory manager such
  44. as HIDOS.SYS or EMM386.SYS. Enhanced Mode will only run on a 386SX or
  45. better CPU and requires a minimum of 1 Megabyte of XMS memory to
  46. function. If you are not sure what mode you are using you can find out
  47. by selecting the HELP menu from the Windows Program Manager. Select
  48. ABOUT PROGRAM MANAGER and you will see a dialog box that indicates the
  49. mode you are currently using.
  50.  
  51.  What Selections to Make in Install
  52.  
  53. The DR DOS Install program will have some sections that you will need
  54. to configure carefully if you are going to run Windows. 
  55.  
  56. The MemoryMAX section of Install will first ask if you would want Memory
  57. Support. We recommend that you say YES unless you intend to use a third
  58. party memory manager such as QEMM or 386 to the MAX. Near the bottom of
  59. the screen there will be a couple of asterisks (*). These indicate the
  60. type of CPU that you have and the amount of extended memory the Install
  61. program detects on your computer. The total amount of extended memory
  62. will be critical for running Windows so we will make recommendations
  63. for computers with 2, 3 and 4 Megabytes.  Systems with more than 4
  64. Megabytes can use recommendations for 4 Megabyte computers.
  65.  
  66. The next screen on 386 and 486 machines will have some important
  67. selections. There will be a line concerning LIM 4.0 support. The LIM 4.0 
  68. EMS support is not required by Windows except for Real Mode. If you do 
  69. not have any DOS applications that require EMS memory, select NO. If you 
  70. use Windows Enhanced Mode as a Shell for running your DOS programs,
  71. Windows itself can provide your DOS applications with EMS memory, you 
  72. can also say NO to EMS Support (see the Windows documentation on how to 
  73. PIF edit a DOS application for EMS support). Saying NO to EMS support 
  74. will give you an additional 64K of Upper Memory (the size of the page 
  75. frame) for use in Hiloading drivers. If you have applications that 
  76. require EMS memory and you do not use Windows Enhanced Mode as a DOS 
  77. Shell, select YES and then enter the amount of EMS memory that you wish 
  78. to create. DR DOS's EMM386 uses extended memory as a pool for use as 
  79. both XMS and EMS memory. The amount of EMS memory you specify will cause 
  80. EMM386.SYS to convert all of the memory pool into Extended via XMS, and
  81. will then lend from that XMS memory for EMS to use up to the amount 
  82. specified. Also on this screen will be a line for support of Windows in 
  83. Standard Mode. This switch will have serious repercussions on available 
  84. DOS memory so a YES answer is not always appropriate. EMM386.SYS cannot 
  85. provide upper memory support and run Windows in Standard Mode. This 
  86. is a Windows limitation. If you choose YES, EMM386 will disable all
  87. upper memory. You will not be able to Hiload device drivers although you
  88. can still use the High Memory Area (HMA) for relocation of DOS and its
  89. structures. If you regularly use Windows in Standard Mode you should say
  90. YES here. There will be an impact on available conventional memory but
  91. since Windows will use your total system memory it will not affect
  92. Windows applications. DOS applications, however,  may be impacted. If
  93. you regularly use Windows in Enhanced Mode or Real Mode you can say NO.
  94. Note: Some Windows applications use Standard Mode to install from. If
  95. you have an install program that suddenly aborts when it tries to run
  96. Windows it may be trying to use Standard Mode. Go Back through SETUP
  97. and say YES to using Standard Mode.
  98.  
  99. For both 286 and 386 installations you will be asked if you want to use 
  100. Spare Video Memory. This is a special switch for HIDOS.SYS and EMM386 that
  101. will take unused video memory and use it for conventional memory. This
  102. means that you can only run text based applications if you say YES to
  103. this option and then run MEMMAX +V. We recommend that you say NO to this
  104. option as Windows will not run if video memory is used for DOS.
  105.  
  106.  
  107. The DiskMAX section of the Install program can also have an impact on
  108. Windows performance. Drivers such as SuperPCK and VDISK can run from
  109. extended memory so care must be exercised in deciding how large to
  110. create these systems. 
  111.  
  112. VDISKS
  113. A VDISK can be used for the storage of Windows temporary files and is
  114. used in this manner to speed up Windows performance. Because Windows
  115. uses such large temporary files a VDISK  must be several megabytes in
  116. size or Windows will fail when the VDISK is full. It is therefore not
  117. recommended for computers with less than 8 megabytes of RAM. If you use
  118. a VDISK for other purposes then all you need do is make sure that you
  119. have enough memory left to run the correct mode of Windows. Typing "MEM"
  120. at a DOS prompt will give you the total amount of available conventional
  121. and XMS memory. Remember that Windows Enhanced Mode will require at
  122. least 1 Megabyte of XMS memory available. Computers with only 2 Megabytes 
  123. or less of total memory should not use a VDISK if they wish to run 
  124. Windows in Enhanced Mode.
  125.  
  126. SUPERPCK
  127. SuperPCK is probably the most needed and most commonly misconfigured
  128. DiskMAX application for use with Windows. Windows users with 2 Megabytes
  129. or less of total memory who wish to run in Enhanced Mode should not use
  130. SuperPCK because of their limited memory resources. 
  131.  
  132. When you say yes to SuperPCK you will see an additional screen with some
  133. configuration selections. Windows users should always say YES to the
  134. selection that asks if you run Windows in Standard or Enhanced Mode.
  135. This will configure SuperPCK to use XMS memory instead of EMS memory and
  136. will place the PCKWIN.SYS driver in the CONFIG.SYS. The PCKWIN.SYS
  137. driver is mandatory for running Windows in Standard or Enhanced Mode
  138. with SuperPCK. The next selection will be whether or not to use
  139. Automatic Memory Allocation. If this selection is YES (default) then
  140. SuperPCK will use all of the available XMS memory and will lend half of
  141. that amount back to Windows. We recommend that this option should only
  142. be used on computers with 4 or more Megabytes of total memory. If
  143. Automatic Allocation is YES then the next line will ask for an amount of
  144. RAM to reserve. This option will reserve the specified amount of memory
  145. for use by other applications and prevent SuperPCK from using this
  146. memory. Lending is still valid. On computers with less than 4 megabytes
  147. total memory or for machines where users wish to limit the size of the
  148. cache Automatic Memory Allocation should be NO. This will change the
  149. next couple of options you see on the screen. You will now see selection
  150. boxes for the Cache Size and the Lending Amount. Users with 3 megabytes
  151. ystems will be very close to the minimum needed to run Windows in
  152. Enhanced Mode. Make sure the size of the cache and the lending amount
  153. give you enough memory to run in the mode that you use. For example: A 4
  154. Megabyte computer can use SuperPCK with a 3 Megabyte cache size and 2
  155. megabytes of lending. This means that when Windows runs the cache will
  156. be reduced to 1 megabyte (because of lending) and Windows will have 2
  157. megabytes of XMS memory to use (the 1st megabyte is DOS conventional
  158. memory).
  159.  
  160. Examples:
  161.     SUPERPCK /EM /R:1024
  162.     These parameters instruct SuperPCK to use all XMS memory less 1
  163.     megabyte. On a system with 3 megabytes of XMS memory Superpck will
  164.     use 2 megabytes. Half of that amount (1 megabyte) will still be 
  165.     available for lending. This gives Windows a total of 2 megabytes 
  166.     to use. Lending can be turned off with the switch /L-.
  167.  
  168.     SUPERPCK /EM /L:1024
  169.     These parameters will instruct SuperPCK to lend 1 megabyte of
  170.     memory no matter what the size of the cache is. This parameter
  171.     could conceivably be more or less than half of the total cache
  172.     size (default).
  173.  
  174.     SUPERPCK /EM /S:1024
  175.     These parameters will restrict the size of the cache to only 1
  176.     megabyte. Any additional XMS memory will not be used by the
  177.     cache. Half of the cache is still available for lending unless
  178.         the /L- switch is used.
  179.  
  180. SUPERSTOR
  181. We cannot emphasize enough the importance of not having Windows
  182. permanent swapfiles on a SuperStored drive. If you use a permanent swap
  183. file make sure that you leave 5 to 10 megabytes of uncompressed disk
  184. space for this file. Note: The Windows permanent swap file does not have
  185. to be located on the same drive as Windows. To find out if you have a
  186. permanent swapfile follow the steps in the example below.
  187.  
  188. Example:
  189.     1) Start Windows in real mode : WIN /R
  190.     2) From the Program Manager select the FILE menu.
  191.     3) select RUN
  192.     4) Key in SWAPFILE
  193.         
  194. If a permanent swapfile exists you will see a dialog box asking you if it
  195. is ok to delete the permanent swapfile. If one does not exist the dialog
  196. will ask you if you want to create one. It is important to remove permanent
  197. swap files before compressing your disk. You can then recreate the swapfile
  198. on the uncompressed drive after the SuperStor drive has been created.
  199. Remember to leave enough uncompressed disk to create the permanent swap
  200. file. The SuperStor default is about 500k which is not enough for a
  201. permanent swapfile. We would also recommend that Windows temporary files
  202. be created on the uncompressed disk but this is not mandatory (the
  203. environment variable TEMP determines where Windows will create its
  204. temporary files). End-users should DISKOPT their drive fairly regularly to
  205. remove any free spaces created when the temporary swap files are deleted.
  206.  
  207.  Getting the Most From Windows
  208.  
  209. End-users with 2 megabyte systems should also refrain from loading DOS
  210. into High Memory if they wish to run in Enhanced Mode. Since Windows
  211. requires 1 megabyte of XMS memory to run in Enhanced Mode you cannot use
  212. any of the HMA. To keep DR DOS 6.0 out of the HMA you will need to:
  213.  
  214. 1)  Make sure that the /MH option is not used on any of the DR DOS 6.0
  215. commands that support it.  This includes SHELL, SHARE and DELWATCH. Use
  216. the /MU option instead on these files. If no switch is used then DR DOS
  217. will try to locate them in the highest memory position by default. This
  218. means that you must use the /MU switch on these commands to keep them
  219. out of the HMA.
  220.  
  221. 2)  Make sure that the HIBUFFERS command is not used in the CONFIG.SYS
  222. file.  This Command will use the HMA even if the Kernel is not put there
  223. with /BDOS=FFFF. Use the command BUFFERS instead.
  224.  
  225. 3)  Make sure that the /BDOS option reads: /BDOS=AUTO. 
  226.  
  227. Using these switches will still enable an end-user to move DR DOS
  228. structures outside of conventional memory while using EMM386. However,
  229. there is a trade-off. EMM386 does use some of the XMS memory as overhead
  230. and on a machine with 1 megabyte of extended memory this means that you
  231. will have about 800-900K available as XMS. You can force Windows into
  232. Enhanced Mode by keying in "WIN /3" on the command line but application
  233. speed may be reduced due to additional disk access. If you feel it is
  234. absolutely imperative that you have 1 megabyte of XMS, memory you can use
  235. HIMEM.SYS from Windows. You will not be able to move any DOS structures
  236. outside of conventional memory which will limit available memory but you
  237. will get a full 1 megabyte of XMS memory.
  238.  
  239. Users with 3 megabyte system will be very close to the minimum needed to
  240. run Windows in enhanced mode but they should be able to use a small
  241. cache. VDISK would not be recommended. Use MEM and SUPERPCK /P to
  242. determine the total amount of XMS memory available. The SUPERPCK /P is
  243. the parameters listing of SuperPCK and the amount available for lending
  244. will be listed under the /L parameter. Make sure that the lending amount
  245. available is enough to enter the correct mode.
  246.  
  247. Users with 4 megabyte systems need to be careful about any device
  248. drivers loaded that use extended memory of any type such as VDISKs. This
  249. will impact on the amount of memory available for SuperPCK to use and
  250. the amount it is able to lend. Systems with greater than 4 megabytes of
  251. memory will probably always have enough XMS memory available but again
  252. other devices using any type of extended memory need to be considered.
  253. Also bear in mind that the less memory that is available to Windows
  254. means that fewer applications will be running before it has to move to a
  255. swapfile. Going to a swapfile usually means a decrease in the speed of
  256. Windows. We have noticed that a good balance on performance is achieved
  257. when Windows has 2 megabytes or more of XMS memory.
  258.  
  259.  Common Problems
  260.  
  261.  - Windows begins but not in the mode that I was using previously.
  262.  
  263. First check available memory with the MEM command. Windows in Enhanced
  264. Mode will require 1024K (1 Megabyte) of available XMS memory to run. 
  265.  
  266. If you are unable to enter Standard Mode make sure that MEM indicates
  267. that you have no EXTENDED memory available. If you do then you are not
  268. using an XMS memory manager and one is required for Enhanced or Standard
  269. Mode. Make sure that you have HIDOS.SYS, EMM386.SYS or a third party XMS
  270. memory manager in your CONFIG.SYS file.
  271.  
  272. If you are using SuperPCK the command "SUPERPCK /P" will give you a
  273. listing of the parameters that are currently in use. The /L command will
  274. indicate the total amount of memory available for lending, the amount
  275. currently lent and the amount remaining to be lent. Make sure that the
  276. amount remaining is enough for the mode that you are trying to enter.
  277. Also, make sure that the cache is using XMS memory. This will be
  278. indicated by the /EM option.
  279.  
  280.  - Windows never seems to get started. The screen blanks and then it
  281.    either locks or drops back to DOS.
  282.  
  283. If you are trying to use Enhanced Mode, Windows may not have enough
  284. memory and is trying to start in Standard Mode. Unless you have the /W
  285. option in EMM386.SYS Windows will not be able to run Standard mode and
  286. will abort. Try placing the /W switch in EMM386 and see if Windows 
  287. starts. If it runs in Standard Mode then you need to use the suggestions 
  288. listed in the previous discussion to find out why you are not entering 
  289. Enhanced Mode. 
  290.  
  291. If the /W switch does not work check to see if your Windows TEMP
  292. directory has any files that begin with "~" and have the extension .SWP.
  293. If you do and you are not currently running Windows then delete them.
  294. These files are Windows temporary files and should have been deleted
  295. when you quit Windows. 
  296.  
  297. If you are using a permanent swapfile this file may have been corrupted.
  298. Try deleting the file and then creating a new one. 
  299.  
  300.  - Windows runs but it seems much slower than before.
  301.  
  302. Make sure that you are running in the correct mode. Use the ABOUT
  303. PROGRAM MANAGER dialog box on the Windows HELP menu to determine what
  304. mode you are using. If you are not in the correct mode use the above
  305. tips to determine why not.
  306.  
  307. Windows may be in the correct mode but you do not have enough XMS memory
  308. remaining and Windows is having to use swapfiles. Use MEM to find out
  309. your available XMS memory. If the figure is very near the minimum
  310. remember that DR DOS has several utilities that can use XMS memory. You
  311. may wish to change the size of a VDISK or cache to allow Windows to use
  312. more of your available RAM.
  313.  
  314. If you are using SuperPCK try increasing the lending amount (/L) or
  315. limiting the size of the cache (/S).  Also SuperPCK should not be used
  316. with VERIFY=ON in AUTOEXEC.BAT. You should use VERIFY=OFF.
  317.  
  318.  - When I start Windows a lot of strange characters appear on the screen
  319.    and then it locks or drops back to DOS.
  320.  
  321. This one is unusual in that it generally happens on a SuperStor drive
  322. (or any other disk compression software that swaps disks) with a 3rd
  323. party memory manager. SuperStor has a utility called DEVSWAP.COM that
  324. swaps DOS drive letters around. This is so that if you compress a boot
  325. disk the applications that you have will still be installed to drive C:
  326. rather than the drive that was created by SuperStor. SuperStor boot
  327. disks will have an uncompressed segment where DOS can load from. This
  328. uncompressed drive will also have a file called DCONFIG.SYS. If you
  329. place your memory manager in the DCONFIG.SYS SuperStor will be able to
  330. move a portion of itself into upper memory. Caution: Do not try to
  331. HILOAD the entire SuperStor driver (it can relocate itself and only
  332. portions of it may go into upper memory). Windows will reinitialize a
  333. memory manager as it starts. To do so it will look for the driver on the
  334. drive from which it was originally loaded from. In the case of a swapped 
  335. drive though, the driver may no longer be there and Windows will abort. 
  336. This can be a confusing issue so here is a step by step sequence.
  337.  
  338. 1. A memory manager is loaded from C:\ (uncompressed segment of the disk)
  339. 2. The SuperStor driver is loaded creating a drive D: (compressed)
  340. 3. DEVSWAP.COM is run. This turns the drives around making uncompressed
  341.    drive C: into drive D: and compressed D: into C:
  342. 4. Windows is run. As it initializes it looks for a memory manager in
  343.    C:\ (which is where it was loaded in step 1) but the memory manager
  344.    is no longer there. It is now in drive D: because of the swap.
  345.    Windows aborts.
  346.  
  347. The solution to this is straightforward. Copy the memory manager into
  348. the same directory on the compressed drive that you loaded it from in
  349. the uncompressed drive. In the case above have a copy of the memory
  350. manager in both the compressed and uncompressed root directories ( C:\ &
  351. D:\ ). 
  352.  
  353. This situation does not generally occur with the DR DOS utilities
  354. HIDOS.SYS and EMM386.SYS because the DR DOS Install program makes sure
  355. that the driver is located in the DR DOS directory on both drives.
  356.  
  357. -I am experiencing difficulty shelling to DOS from Windows. It either
  358. locks or I get a message that I am out of environment space.
  359.  
  360. Check your environment from DOS by typing "SET". There should be a
  361. variable called COMSPEC and it should point to the either the root
  362. directory (preferred) or to the directory where DR DOS files are
  363. located. Check the SHELL statement and make sure that there is a /P
  364. statement and that an environment has been set ( /E:). Make sure that
  365. the environment size is large enough. Windows may need a fairly large
  366. environment size if you run several applications at the same time. It is
  367. not necessary to have a COMSPEC line in your AUTOEXEC.BAT with DR DOS as
  368. the shell statement will insert one. If a third party memory manager is
  369. in use it is possible to receive an error loading a second command
  370. processor when you relocate COMMAND.COM to upper memory. Try loading
  371. COMMAND.COM  in conventional memory. There may also be a TSR that is
  372. interfering with loading another command processor. Try removing TSR's
  373. from memory to see if you have a conflict.
  374.  
  375.  
  376.  Final Words
  377.  
  378. There is now available a MemoryMAX update that contains a new HIDOS.SYS
  379. and EMM386.SYS. If you are still having conflicts with getting Windows
  380. to run with DR DOS you may need this update. It is free of charge and
  381. can be obtained by dowloading it from Compuserve or by contacting
  382. Digital Research via fax at 408-649-8209. Or you can contact Technical
  383. Support by mail or calling us at 408-646-6464. If you are contacting us
  384. by fax or mail be sure to include a product serial number and the size
  385. of the diskettes that you need (720K 3 1/2 or 360K 5 1/4). This update
  386. does not have to be booted from drive A: so you may order any size disks
  387. you like. To determine if you have the update already (the updates are 
  388. combined with DR DOS as we manufacture it) look at the date of your 
  389. EMM386.SYS and HIDOS.SYS. A date of October 1991 or later means that you 
  390. have the update.
  391.