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