home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15351 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.5 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!olivea!spool.mu.edu!uwm.edu!rutgers!igor.rutgers.edu!remus.rutgers.edu!jjwright
  2. From: jjwright@remus.rutgers.edu (   Jay)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: THINK C 5:  help with stack error
  5. Message-ID: <Sep.11.12.17.41.1992.893@remus.rutgers.edu>
  6. Date: 11 Sep 92 16:17:42 GMT
  7. Organization: Rutgers Univ., New Brunswick, N.J.
  8. Lines: 31
  9.  
  10.  
  11. greetings,
  12.  
  13. how can one go about alleviating the problem of "stack collision with
  14. heap" in think c v5?  The manual doesnt really help me too much, or i
  15. should say that i just dont like what its telling me.  :)
  16.  
  17. anyway, i have a program file (with the main) that has an include
  18. statement for a list of #define integers and about five struct
  19. statements.  then i have a section defining/declaring? the subroutines
  20. that are used in the program.
  21.     ie.  
  22.     int open_files();
  23.     int goto_month();
  24.     and so on and so on
  25. and then i have main() and within main's brackets i define eight file
  26. pointers, five structs and a couple of integer variables.  This cannot
  27. take up that much space could it?  The debugger just crashes when i
  28. use it, although once i received the error "stack collision with
  29. heap", so i checked out the book and now im asking you.
  30.  
  31. is this post much too vague?  if any one understands what im driving
  32. at, i would appreciate a response.
  33. if anyone thinks im crazy but has some ideas that might be useful, i
  34. would appreciate them too.  :)
  35.  
  36. in the mean time i will be pluggin away at it.
  37.  
  38. thanx..
  39.  
  40. jay
  41.