home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / programm / 7004 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.8 KB

  1. Path: sparky!uunet!vnet.ibm.com
  2. From: ameline@vnet.ibm.com (Ian Ameline)
  3. Message-ID: <19921214.105417.596@almaden.ibm.com>
  4. Date: Mon, 14 Dec 92 13:53:31 EST
  5. Subject: Workframe and MSC 6.00A
  6. Newsgroups: comp.os.os2.programmer
  7. References: <1gb6grINNcjk@morrow.stanford.edu>
  8. Organization: C-Set/2 Development, IBM Canada Lab.
  9. Disclaimer: This posting represents the poster's views, not those of IBM
  10. Lines: 35
  11.  
  12. In article <1gb6grINNcjk@morrow.stanford.edu>,
  13. GG.MPD@forsythe.stanford.edu (Michael Durket) writes:
  14. >
  15. >I'm getting a C1024 error running MSC 6.00A under the Workframe
  16. >(the compiler was installed so that it runs under OS/2 not
  17. >DOS).
  18. >
  19. >The error is due to the fact that I'm compiling with the /Zi
  20. >option and is caused by the compiler running out of files.
  21. >(I located an article in the Microsoft Knowledge Base that
  22. >indicates that the /Zi option requires a file handle, and
  23. >that this may cause nested includes to run out of files thus
  24. >causing the C1024 error).
  25. >
  26. >According to the article, the fix is to edit CONFIG.SYS to
  27. >increase the FILES= parameter. This is all well and good,
  28. >but that applies to DOS programs only, correct? For OS/2
  29. >does this have any meaning? If so, how do I adjust it for
  30. >running MSC in OS/2 protected mode under the Workframe?
  31. >
  32. >Any assistance is appreciated.
  33. >
  34.  
  35.    The WF makes sure that there are *lots* of files available for its
  36. child processes. The problem is that since the WF uses file handles 1
  37. through about 9 or 10, the child process gets file handles 10 through
  38. whatever (much more than 20 left). The problem is that MSC has an array
  39. of objects that it indexes with the file handle -- this array is from 1
  40. 20. So no matter how many file handles are left available, MSC can only
  41. use those numbered less than 20 -- and there's fewer of those left than
  42. it wants to use. (No comments on this design)
  43.  
  44. Regards,
  45. Ian Ameline.
  46.  
  47.