home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR9 / TI1393.ZIP / TI1393.ASC
Text File  |  1993-06-17  |  11KB  |  331 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Borland C++                           NUMBER  :  1393
  9.   VERSION  :  ALL
  10.        OS  :  ALL
  11.      DATE  :  June 17, 1993                            PAGE  :  1/5
  12.  
  13.     TITLE  :  Trouble Shooting Borland Products with DOS 6.0
  14.  
  15.  
  16.  
  17.  
  18.  
  19.   Configuring Your System with DOS 6.0
  20.   ====================================
  21.  
  22.   The most common conflict that exists with the Borland C++
  23.   compiler and DOS 6.0 arises from the fact that DOS may be
  24.   configured without enough extended (or XMS) memory available for
  25.   the compiler to load.  However, other conflicts can also arise.
  26.   This document addresses the most common problems that can arise.
  27.  
  28.  
  29.   1)  INSTALLING ON DOS 6.0
  30.       ---------------------
  31.  
  32.        If you are experiencing difficulties during installation of
  33.        Borland/Turbo C++, install on a clean boot.  (See Clean
  34.        Booting With DOS 6.0)
  35.  
  36.  
  37.   2)  NOT ENOUGH AVAILABLE EXTENDED MEMORY
  38.       ------------------------------------
  39.  
  40.        Turbo C++ 3.0/Borland C++ 3.x DOS compilers need 1 megabyte
  41.        of extended(XMS) memory _available_.  Turbo C++ 3.x/Borland
  42.        C++ 3.x Windows compilers need 2 megabytes of extended(XMS)
  43.        memory _available_.
  44.  
  45.        DOS 6.0's 'memmaker' will optimize your system for maximal
  46.        available conventional memory, (the first 640k in memory).
  47.        It does this by loading as much TSR's and devices in the
  48.        extended area of memory, (above 640k), as possible.
  49.  
  50.        a)   How to get a report of available extended memory:  To
  51.             get an accurate report of how much memory is available,
  52.             exit from all applications that you are currently
  53.             running at which point you should be at a DOS prompt.
  54.             At the DOS prompt type 'mem' which will give you a
  55.             report similar to the following:
  56.  
  57.          Memory Type        Total =  Used  +  Free
  58.          ----------------  ------   ------   ------
  59.          Conventional        639K     102K     537K
  60.          Upper               104K      96K       8K
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Borland C++                           NUMBER  :  1393
  75.   VERSION  :  ALL
  76.        OS  :  ALL
  77.      DATE  :  June 17, 1993                            PAGE  :  2/5
  78.  
  79.     TITLE  :  Trouble Shooting Borland Products with DOS 6.0
  80.  
  81.  
  82.  
  83.  
  84.          Adapter RAM/ROM       0K       0K       0K
  85.          Extended (XMS)     7064K    1336K    5728K
  86.          ----------------  ------   ------   ------
  87.          Total memory       7807K    1534K    6273K
  88.  
  89.          Total under 1 MB    743K     198K     545K
  90.  
  91.          Total Expanded (EMS)                 7472K (7651328 bytes)
  92.          Free Expanded (EMS)                  5728K (5865472 bytes)
  93.  
  94.          Largest executable program size       537K  (549968 bytes)
  95.          Largest free upper memory block         7K    (7104 bytes)
  96.          MS-DOS is resident in the high memory area.
  97.  
  98.  
  99.        To compute the total amount of Extended memory available,
  100.        (that is the total amount above 640k conventional), add the
  101.        free amount for 'Extended(XMS)' and the free amount of
  102.        'Upper' in the above  report.
  103.  
  104.        b)   Suggestions for freeing up more extended memory: First,
  105.             become familiar with both your CONFIG.SYS and your
  106.             AUTOEXEC.BAT before making any changes.  Know what each
  107.             line in these two files are doing. The DOS 6.0 User's
  108.             Guide is a great reference for this.  Some of the most
  109.             common statements that load devices and/or TSR's into
  110.             the extended or high area of memory are:
  111.  
  112.             'devicehigh'
  113.               example:              devicehigh=c:\mouse\mouse.sys
  114.               could be changed to:  device=c:\mouse\mouse.sys
  115.  
  116.             'lh' or 'loadhigh'
  117.               example:              lh c:\dos\share.exe
  118.               could be changed to:  c:\dos\share.exe
  119.  
  120.             'device=c:\dos\smartdrv.exe 1024 2048'
  121.               could be changed to:  device=c:\dos\smartdrv.exe 512
  122.  
  123.           HINT:  'rem' will temporarily remark out anything that
  124.                  follows on a single line.  This is a very powerful
  125.                  tool to use when attempting to reconfigure these
  126.                  two files.
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.   PRODUCT  :  Borland C++                           NUMBER  :  1393
  141.   VERSION  :  ALL
  142.        OS  :  ALL
  143.      DATE  :  June 17, 1993                            PAGE  :  3/5
  144.  
  145.     TITLE  :  Trouble Shooting Borland Products with DOS 6.0
  146.  
  147.  
  148.  
  149.  
  150.             After making changes, reboot your system and again run
  151.             'mem' to see how much more you have freed up in the
  152.             extended area.
  153.  
  154.  
  155.   3)  USING EMM386 MEMORY MANAGER
  156.       ---------------------------
  157.  
  158.   a)   If using emm386 memory manager, only use DOS 6.0's version
  159.        of himem.sys.  Never mix Windows and DOS versions of emm386
  160.        and himem.sys.
  161.  
  162.   b)   When using emm386 memory manager, we recommend using the ram
  163.        parameter.  The ram parameter allows access to both EMS and
  164.        extended(XMS) memory and allocates it from the same memory
  165.        pool.  This setting allows the full use of Borland's tools,
  166.        including those such as td286 that use EMS memory.
  167.  
  168.   c)   If you are using either DOS 6.0's version of emm386 or
  169.        Windows version 3.1 of emm386 you _may_ experience conflicts
  170.        such as unknown general protection faults or exceptions.
  171.        This especially will occur when interfacing with BRIEF
  172.        programmer's editor.
  173.  
  174.   We have provided a patch for using Borland C++ with either of
  175.   these versions of EMM386.  This patch is described in Borland
  176.   C++'s readme file.  Before applying the patch do the following:
  177.  
  178.         1.  Make a backup copy of dpmi16bi.ovl, located in the
  179.             borlandc\bin directory.
  180.         2.  Clean boot your machine.  (See Clean Booting)
  181.         3.  Run dpmiinst.exe from the borlandc\bin subdirectory.
  182.  
  183.  
  184.   4)  GENERAL PROTECTION OR EXCEPTION FAULTS
  185.       --------------------------------------
  186.  
  187.       These types of errors can happen for various reasons.
  188.       One of the reasons may be that other devices or TSR's do not
  189.       know how to behave well in protected mode.  Another source
  190.       may be that you don't have enough Extended(XMS) memory
  191.       available.  Check your available memory and then clean boot,
  192.       see if problem persists.  If after clean booting, the problem
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.   PRODUCT  :  Borland C++                           NUMBER  :  1393
  207.   VERSION  :  ALL
  208.        OS  :  ALL
  209.      DATE  :  June 17, 1993                            PAGE  :  4/5
  210.  
  211.     TITLE  :  Trouble Shooting Borland Products with DOS 6.0
  212.  
  213.  
  214.  
  215.  
  216.       goes away, it is most likely  due to a device or software
  217.       that is loaded in either your  CONFIG.SYS or AUTOEXEC.BAT
  218.       that needs to be carefully scrutinized  or possibly removed.
  219.       To find out what piece of software, TSR or device that is
  220.       causing the fault, add statements back one by one to your
  221.       AUTOEXEC.BAT and CONFIG.SYS, reboot and test again.
  222.  
  223.  
  224.   5)  CLEAN BOOTING WITH DOS 6.0
  225.       --------------------------
  226.  
  227.   a) Clean booting for Borland/Turbo C++ for DOS:
  228.  
  229.      DOS 6.0 provides a quick and easy way of clean booting to test
  230.      DOS applications.  Upon rebooting, immediately after receiving
  231.      the "Starting MS-DOS" press the <F5> key.  This will bypass
  232.      your AUTOEXEC.BAT and CONFIG.SYS files.
  233.  
  234.   b) Clean booting for Borland/Turbo C++ for Windows:
  235.  
  236.      Create an AUTOEXEC.BAT that has only your path and prompt
  237.      statements.  Create a CONFIG.SYS that has files=30,
  238.      buffers=30, device=c:\dos\himem.sys.  In addition, if you are
  239.      using any kind of disk compression utility, such as
  240.      DoubleSpace, add those directives.  Edit your win.ini so that
  241.      the load and run lines are blank: 'load=   ' and 'run=    '.
  242.      Edit your system.ini as follows: 'shell=progman.exe'.  Boot
  243.      with your new AUTOEXEC.BAT and CONFIG.SYS in your root drive,
  244.      and execute Windows in standard mode by typing 'win /s' at the
  245.      DOS prompt.
  246.  
  247.      HINT:  DOS 6.0 provides for Multi-Configuration booting that
  248.             can make this easier.  Refer to your DOS User's Guide
  249.             for further information.
  250.  
  251.  
  252.   6)  COMMON QUESTIONS AND ANSWERS:
  253.       -----------------------------
  254.  
  255.   Q:   Why do I get one of the following errors when I attempt to
  256.        run Borland/Turbo C++?:  "Memory Manager Cannot Initialize"
  257.        "DPMI Server Initialization Error->Not Enough Memory for
  258.        PMInit" "Application Load and Execute Error FFXXX"
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.   PRODUCT  :  Borland C++                           NUMBER  :  1393
  273.   VERSION  :  ALL
  274.        OS  :  ALL
  275.      DATE  :  June 17, 1993                            PAGE  :  5/5
  276.  
  277.     TITLE  :  Trouble Shooting Borland Products with DOS 6.0
  278.  
  279.  
  280.  
  281.  
  282.   A:   All these errors refer to there not being enough available
  283.        extended memory for the compiler to load,  see (2) above.
  284.  
  285.  
  286.   Q:   Why do I get this error when attempting to run td286?
  287.        "System:  Machine is running incompatible expanded memory
  288.        manager"
  289.  
  290.   A:   Td286 depends on EMS memory. It uses a VCPI protocol.  If
  291.        you are using a memory manager with the parameter noems, or
  292.        frame=none, or novcpi, then it can't run.  These parameters
  293.        prevent access to expanded memory.  We recommend using the
  294.        ram parameter.
  295.  
  296.  
  297.   Q:   When I clean boot and then run mem, I get 0 bytes free of
  298.        Extended(XMS) memory, but I know I have extended memory!
  299.  
  300.   A:   When you boot without himem.sys, mem will report 0 bytes
  301.        free of Extended(XMS) memory.  To get the amount free,
  302.        reboot with your himem.sys device.
  303.  
  304.  
  305.   Q:   When I attempt to load the development environment, I get
  306.        "Disk full, not enough swap space".
  307.  
  308.   A:   Borland/Turbo C++ automatically checks for space to create a
  309.        swap file.  If you get this error, you don't have enough
  310.        space for this swap file to be created.  Either use the /rx
  311.        switch, where x is another drive, or execute bc.exe from
  312.        another drive.
  313.  
  314.  
  315.   DISCLAIMER: You have the right to use this technical information
  316.   subject to the terms of the No-Nonsense License Statement that
  317.   you received with the Borland product to which this information
  318.   pertains.
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.