home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5492 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: Norway.EU.net!usenet
  2. From: patrick.hanevold@login.eunet.no (Patrick Hanevold)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Ceck out this bug. What the *** is SASC/6.56 doing?
  5. Date: 15 Mar 1996 18:21:58 GMT
  6. Organization: EUnet Norway
  7. Message-ID: <1271.6647T1136T1048@login.eunet.no>
  8. References: <1120.6643T91T406@login.eunet.no> <4hvk1f$o0c@zeus.central.ntua.gr>
  9.         <874.6644T381T2315@login.eunet.no> <4i17ga$doo@btmpjg.god.bel.alcatel.be>
  10.     <885.6646T9T693@login.eunet.no> <4i6led$stj@zeus.central.ntua.gr>
  11. NNTP-Posting-Host: pc3.asker-pm2-1.eunet.no
  12. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  13.  
  14.  
  15. >>OpenScreenTags() doesnt crash. exit(0) does.
  16. >>I guess it maby could mess up so exit(0) would crash.
  17. >>Stach check should be smart enough to fail if there was too litle stack
  18. >>left. I would guess none of the OS calls would need more then 4K since thats
  19. >>the default stack size.
  20.  
  21. >exit(0) probably crashes cause it peeks a wrong return address from the stack
  22. >You are right OS calls need no more than 4k but when you call the OpenScreen-
  23. >Tags you are left with less than one kilobyte of stack.
  24.  
  25. >I dont think a compiler can ever check if stack will overflow when a call
  26. >will be made to a function that wasn't compiled so to include code for
  27. >stack checking.
  28. The minimum stack should be 4K by default.
  29.  
  30. >My guess is that if you had the OS source and you had compiled it with 'stack
  31. >checking' then your program wouldn't crash.
  32. Yups.
  33.  
  34. -----------------------------------------------------------------------------
  35.     Patrick Hanevold - VR developer - patrick.hanevold@login.eunet.no
  36.   Silicon Graphics Power Onyx system with four R8000 processors and two
  37.     Reality Engine 2s. 5 gigabytes of RAM. 200 gigabytes of fast disk
  38.         (single-file optimized read rate of 250 megabytes/sec).
  39. --------------------- But heck, my Amy boots faster. :) ---------------------
  40.  
  41.