home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / bltc17.zip / BORLAND.ZIP / FIXBORL.TXT next >
Text File  |  1993-08-31  |  1KB  |  33 lines

  1. 31-Aug-93
  2.  
  3. To fix the problem with Borland C compilers in large memory models
  4. do the following:
  5.  
  6.  0. Install BULLET first (BULLET.LI_ installs to BULLET.LIB).
  7.  1. Create a new directory.
  8.  2. Make a copy of BULLET.LIB 1.07 and put it in the new directory.
  9.  3. Copy the replacement MEMCXB.OBJ module to the new directory.
  10.  4. Do   C>tlib bullet.lib -memxb +memcxb
  11.  5. Do   C>ren bullet.lib bullet_L.lib
  12.  
  13. That's it. BULLET_L.LIB is created and should run as expected. The memcxb.obj is
  14. written for LARGE/HUGE memory models only. With a couple conditionals, MEDIUM
  15. could be used (I suppose) but it's not necessary in any case.
  16.  
  17. The problem with Borland compilers is that they base their memory management
  18. on memory that isn't theirs, so whenever a DOS INT21/48 call is made, the
  19. Borland memory manager crashes. This patch routes BULLET DOS INT21/48/49 calls
  20. to the run-time's _malloc and _free. Only Borland compilers need use this patch.
  21.  
  22. MEMCXB.ASM is included. Makes for easy programmer changes of this non-
  23. standard module (non-standard in that it requires a C runtime library).
  24.  
  25. xb$SetHandleCount no longer is functional, sinc this makes a call to INT21/67
  26. which makes a call to INT21/48. You may be able to alter you C start-up source
  27. to work around this. If you call INITXB with IP.jftmode=1, error 1 is returned
  28. for invalid function.
  29.  
  30. chh
  31.  
  32. <EOF>
  33.