home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15564 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.8 KB  |  45 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!sun-barr!decwrl!concert!sas!mozart.unx.sas.com!walker
  3. From: walker@twix.unx.sas.com (Doug Walker)
  4. Subject: Re: AllocMem corrupting memory
  5. Originator: walker@twix.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <BxGC01.8zJ@unx.sas.com>
  8. Date: Mon, 9 Nov 1992 13:55:13 GMT
  9. References:  <1992Nov8.132440.14108@miavx1.acs.muohio.edu>
  10. Nntp-Posting-Host: twix.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 31
  13.  
  14.  
  15. In article <1992Nov8.132440.14108@miavx1.acs.muohio.edu>, bjbernstein@miavx1.acs.muohio.edu writes:
  16. |>   I have been using AllocMem to create memory for 48 and 290 byte 
  17. |> structures.. After creating a few of them (eventually, my program creates 
  18. |> about 110 of them), I have noticed 'garbage' pixels appearing on the 
  19. |> workbench screen, as if I wrote over some memory.. 
  20. |> 
  21. |>   Eventually, it crashes giving me a GURU of a corrupted freemem list.. 
  22. |> 
  23. |>   Should I be using AllocMem or is there some other routine that would be 
  24. |> better for this?
  25.  
  26. AllocMem is fine for this use;  your program has a bug in it that
  27. causes problems.  Get a copy of my "memlib" functions (they appeared
  28. on Fred Fish #240) and recompile your program and link with them.
  29. They are quite likely to be able to pinpoint your problem.
  30.  
  31. If you have SAS/C 6.0, an improved version of memlib is shipped in
  32. the SC:EXTRAS/MEMLIB drawer.
  33.  
  34. |> @@ Brian Bernstein (Drone)           @@ "I'm a white dread, I'm a white   @@ 
  35.  
  36. -- 
  37.   *****
  38. =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
  39.  *|. o.| ||                                          1200/2400/9600 Dual
  40.   | o  |//     For all you do, this bug's for you!
  41.   ====== 
  42. usenet: walker@unx.sas.com                            bix: djwalker 
  43. Any opinions expressed are mine, not those of SAS Institute, Inc.
  44.  
  45.