home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / atari / st / 16858 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  2.9 KB

  1. Path: sparky!uunet!mcsun!sunic!chalmers.se!news.chalmers.se!dtek.chalmers.se!d8klojo
  2. From: d8klojo@dtek.chalmers.se (Johan Klockars)
  3. Newsgroups: comp.sys.atari.st
  4. Subject: MGIF bug fixed, patch included (was MGIF 4.0 problem....)
  5. Message-ID: <BxzFKK.G0w@news.chalmers.se>
  6. Date: 19 Nov 92 21:26:44 GMT
  7. References: <olk.721921925@rzdspc1> <1992Nov18.110007.11018@jyu.fi> <1992Nov19.165420.23954@jyu.fi>
  8. Sender: news@news.chalmers.se
  9. Organization: Chalmers University of Technology
  10. Lines: 56
  11. Nntp-Posting-Host: hacke5.dtek.chalmers.se
  12.  
  13. In article <1992Nov19.165420.23954@jyu.fi> ehs@jyu.fi (Eero H. Sarkkinen) writes:
  14. >In article <1992Nov18.110007.11018@jyu.fi> I wrote:
  15. >
  16. >>Also, anybody else having problems launching this version under
  17. >>tcsh? It works just fine until it says "copy to transform array"
  18. >>at which point it just exits. 
  19. >(and so on...)
  20. >To clarify things, further experiments have revealed that
  21. >this seems to happen whenever there's less than some 2.5 meg
  22. >free RAM available.  So it was not a tcsh bug/incompatibility,
  23. >only this mgif version being quite the memory hog.
  24. >
  25. >EeroS
  26.  
  27. The problem is that MGIF allocates too much memory for the image buffers. Only
  28. 32k remains if you have less than 2Mb free when you start.
  29. The 96k needed for the flicker screens is not allocated until after the
  30. unpacking and the program does an exit(-1) if the allocation fails.
  31.  
  32. Below you'll find a small uuencoded program that will patch MGIF if you run it
  33. in the directory where you keep MGIF.TTP. It does exactly the same thing as the
  34. source code change described.
  35. With this fix it should be possible to run MGIF even on a 520.
  36.  
  37. By the way, I'm working on v4.1 now. I've already added a quick preview using
  38. ordered dither (a little over a second for a full screen).
  39. Please, let me now what you'd like to see in MGIF.
  40. JPEG?  Medium res?  More image processing?  GIF writing?
  41. If you think you could help, please mail.
  42.  
  43. ------
  44. If you have the sources and can compile them:
  45.  
  46. The following line is what causes the problem(at the start of main() in mgif.c)
  47.  
  48.         MAXIMG = MAXRAW = ((long)Malloc(-1L) - 32768) / 2;
  49.                                                ^^^^^
  50. This is the amount of memory left in the system after allocation of the image
  51. buffers. Try changing this to 131072 (=128k) for example.
  52. This will solve the problem.
  53.  
  54. ----- cut here ----
  55. begin 755 patch.prg
  56. M8!H   "T    "@    0                  "IO  0@+0 ,T*T %-"M !P&
  57. M@    0 &@    0 B#=*  H'____^+D$O "\-0F<_/ !*3D%/[P ,/SP  DAZ
  58. M '8_/  ]3D%0CTJ :TXX &$  $Y*@&LZ2?H 9B\,+SP    $/P0_/  _3D%*
  59. M@&L>#)3__X  9A9A   F2H!K   .*+S__@  /KP 0$Y!3^\ ##\$/SP /DY!
  60. J6(]"9TY!0F<_!"\\   BK#\\ $).04_O  I.=4U'248N5%10        
  61.  
  62. end
  63.  
  64. --
  65.   Chalmers University   | Why are these |  e-mail :  d8klojo@dtek.chalmers.se
  66.      of Technology      |  .signatures  |  Address:  Johan Klockars
  67.                         | so hard to do |            Foreningsgatan 32/408
  68.    Gothenburg, Sweden   |     well?     |            411 27 Gothenburg, SWEDEN
  69.