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

  1. Path: god.bel.alcatel.be!nlev00!barnhoorn
  2. From: barnhoorn@nlev00 ()
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Ceck out this bug. What the *** is SASC/6.56 doing?
  5. Date: 11 Mar 1996 12:49:14 GMT
  6. Organization: Alcatel Bell
  7. Distribution: world
  8. Message-ID: <4i17ga$doo@btmpjg.god.bel.alcatel.be>
  9. References: <1120.6643T91T406@login.eunet.no> <4hvk1f$o0c@zeus.central.ntua.gr> <874.6644T381T2315@login.eunet.no>
  10. Reply-To: barnhoorn@nlev00 ()
  11. NNTP-Posting-Host: 138.203.178.61
  12. X-Newsreader: mxrn 6.18-10
  13.  
  14.  
  15. Path: nlev00!barnhoorn
  16. Newsgroups: comp.sys.amiga.programmer
  17. From: barnhoorn@nlev00 ()
  18. Distribution: world
  19. X-Newsreader: mxrn 6.18-10
  20. References: <1120.6643T91T406@login.eunet.no> <4hvk1f$o0c@zeus.central.ntua.gr> <874.6644T381T2315@login.eunet.no>
  21. Reply-To: barnhoorn@nlev00 ()
  22. Organization: Alcatel Bell
  23. Subject: Re: Ceck out this bug. What the *** is SASC/6.56 doing?
  24.  
  25. In article <874.6644T381T2315@login.eunet.no>, patrick.hanevold@login.eunet.no (Patrick Hanevold) writes:
  26. >
  27. >>>#define ScreenWidth     160
  28. >>>#define ScreenHeight    128
  29. >>>void main(void)
  30. >>>{
  31. >>>    int     x,y,n;
  32. >>>    UBYTE   Buffer[ScreenWidth];
  33. >>>    ULONG   Palette[256*3+2];           // This one causes the bug.
  34. >>>    struct  Screen  *Scr=OpenScreenTags(NULL,
  35. >>>        SA_Width,           320,
  36. >>>        SA_Height,          256,
  37. >>>        SA_Depth,           8,
  38. >>>        TAG_END);
  39. >
  40. >>Hmm, that Palette array holds 3080 bytes on the stack.
  41. >>My guess is that you screw up your stack. Try making the stack bigger or
  42. >>declare the array as global, out of the main function.
  43. >
  44. >Tryed "Stack check" and all that. No difference.
  45. >Anyway, the default stack is 4K isnt it?
  46. >Cant think of anything using that additional 1K.
  47. >Dont want it global. Allocate it myself now.
  48. >
  49. OpenScreenTags() need stack too!! Together with the already used stack
  50. by _main, and the 3252 bytes of main(), you only have about 800 bytes
  51. left for OpenScreenTags(), might be too small. Stackcheck will not
  52. find this, because stackcheck does not know the stack-usage of
  53. OpenScreenTags().
  54. -- 
  55. ---------------------------------------------------------------------------
  56. Jaco Barnhoorn               barnie@xs4all.nl
  57. Software Test Engineer       barnhoorn%nlev00@btmv56.se.bel.alcatel.be
  58. Alcatel Telecom Systems
  59. Rijswijk, The Netherlands
  60. ---------------------------------------------------------------------------
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.