home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1305 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.7 KB  |  43 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!dhhalden.no!sofus.dhhalden.no!runeh
  3. From: runeh@sofus.dhhalden.no (RUNE HALFDAN HOLST HUSEBY)
  4. Subject: How to get bigger stack
  5. Message-ID: <runeh.42@sofus.dhhalden.no>
  6. Sender: news@dhhalden.no (Network News User)
  7. Nntp-Posting-Host: pc178
  8. Organization: Ostfold College
  9. Date: Thu, 13 Aug 1992 03:37:06 GMT
  10. Lines: 31
  11.  
  12. I'm currently working on a C++ program with Borland C++ 3.0.
  13. The project has now become quite big, big enough to 'blow the stack'.
  14. Since I have set the 'Check for stack overflow' compiler option on, I always 
  15. get the warning that there has occured a stack overflow. 
  16.  
  17. So, the question is, how should I make the stack big enough? 
  18.  
  19. I have tried to set the STACKSIZE variable in my .DEF file bigger, without 
  20. stopping me from getting Stack Overflow errors. 
  21.  
  22. Is it possible to manipulate the _stklen variable to get bigger stack under 
  23. windows, as you do under DOS?
  24.  
  25. Any help will be greatly appreciated, since I've been fighting this problem 
  26. quite a while.
  27.  
  28. Thanks!
  29.  
  30. runeh@sofus.dhhalden.no
  31.  
  32.  
  33.  
  34.  
  35. /-------------------------------}--}--{ /----------------------------------\
  36. | Rune Halfdan Holst Huseby      }  {  |  S-Mail: Atomveien 18             |
  37. |  _______________________________}{   |          1750 HALDEN              |
  38. | (_____(_runeh@sofus.dhhalden.no_)    |          NORWAY                   |
  39. |-------------------------------------/ \----------------------------------|
  40. | Real programmers never work 9 to 5. If any real programmers are around   |
  41. | at 9 am, it's because they were up all night.                            |
  42. \--------------------------------------------------------------------------/
  43.