home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19980 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.5 KB  |  33 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!news.funet.fi!funic!nntp.hut.fi!vipunen.hut.fi!jmunkki
  3. From: jmunkki@vipunen.hut.fi (Juri Munkki)
  4. Subject: Re: Fix : ThinkC app won't run standalone (bug in smart link!?)
  5. Message-ID: <1992Dec17.173936.5143@nntp.hut.fi>
  6. Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
  7. Nntp-Posting-Host: vipunen.hut.fi
  8. Reply-To: jmunkki@vipunen.hut.fi (Juri Munkki)
  9. Organization: Helsinki University of Technology
  10. References: <cmcclary-151292113831@mcclary-mac.ucs.indiana.edu> <steve.herman-161292132205@128.158.4.199> <1992Dec16.215017.16222@usl.edu>
  11. Date: Thu, 17 Dec 1992 17:39:36 GMT
  12. Lines: 19
  13.  
  14. In article <1992Dec16.215017.16222@usl.edu> pvl1779@usl.edu (Leach Phuong V) writes:
  15. >The problem seems to be in the linker.  I turned the "smart link" option
  16. >off when building the application, and it runs fine now.
  17. >
  18. >The app was crashing on a sprintf() call.  Earlier calls worked fine, but
  19. >at some point in the program, sprintf() got stepped on and no longer
  20. >worked.  It seems to me that the "smart" linker has a possible bug.
  21. >Does this seem like a reasonable assumption to you?
  22.  
  23. It sounds like your program is writing all over memory and at some point
  24. it manages to write over a memory location that contained sprintf. Changing
  25. the linker option changes the way that things map out into memory and so
  26. you avoid the problem with sprintf, but possibly create a new one.
  27.  
  28. I haven't had any problems with Think C's linker.
  29.  
  30. -- 
  31.   Juri Munkki                           Windsurf: fast sailing
  32.  jmunkki@hut.fi                          Macintosh: fast software
  33.