home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18493 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  2.1 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!gatech!concert!sas!mozart.unx.sas.com!walker
  2. From: walker@twix.unx.sas.com (Doug Walker)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: HELP: malloc() and system dependancy
  5. Message-ID: <C0p18n.DML@unx.sas.com>
  6. Date: 11 Jan 93 14:21:59 GMT
  7. References: <1993Jan10.203944.979@uoft02.utoledo.edu>
  8. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  9. Organization: SAS Institute Inc.
  10. Lines: 34
  11. Originator: walker@twix.unx.sas.com
  12. Nntp-Posting-Host: twix.unx.sas.com
  13.  
  14.  
  15. In article <1993Jan10.203944.979@uoft02.utoledo.edu>, mneylon@jupiter.cse.utoledo.edu (Michael Neylon) writes:
  16. |> My friend and I are working together on producing a flashcard program.  He
  17. |> has SAS/C 6.0, I have 6.1.  Today, he gave me some code and a executable.
  18. |> The output seems to work fine on his machine.  However, when I try to run
  19. |> the same executable, there is some memory conflict cause the font gets all
  20. |> screwed up.  
  21. |> 
  22. |> I figure it is a malloc() call in his program.  He has defined it safely
  23. |> according to standards.  Now, is malloc() safe to use on any system?
  24. |> 
  25. |> He has a 2000 w/ 2.1, very little in the way of commodities ( a screen 
  26. |> blanker is all).  I have a 500 w/ 2.1, and lots of extra programs at the top,
  27. |> including Nickprefs, CopperPrefs, TM2.0, ToolsDaemon 2.0b, MFR, ASwarm3
  28. |> MagIcon, and use csh for the shell.
  29.  
  30. malloc() is totally safe on any system.  Why do you suspect it of
  31. causing the problem?  Memory-trashing bugs often exhibit wildly
  32. different behavior on different machines.
  33.  
  34. If you suspect a memory trash, I recommend using the memlib utility
  35. routines found in the SC:EXTRAS/MEMLIB drawer to help track it
  36. down.
  37.  
  38. |> Michael Neylon   aka Masem the Great and Almighty Thermodynamics GOD!
  39.  
  40. -- 
  41.   *****
  42. =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
  43.  *|. o.| ||                                          1200/2400/9600 Dual
  44.   | o  |//     For all you do, this bug's for you!
  45.   ====== 
  46. usenet: walker@unx.sas.com                            bix: djwalker 
  47. Any opinions expressed are mine, not those of SAS Institute, Inc.
  48.