home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / programm / 6513 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.2 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!uwm.edu!rutgers!cmcl2!panix!os2man
  2. From: os2man@panix.com (Larry Salomon Jr.)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: sprintf() hangs application
  5. Message-ID: <1992Nov17.190901.16350@panix.com>
  6. Date: 17 Nov 92 19:09:01 GMT
  7. Organization: PANIX Public Access Unix, NYC
  8. Lines: 22
  9.  
  10. For some reason, a call to sprintf() instead one of my routines
  11. (called getTempName()) hangs my PM application (using C-Set/2 from
  12. CD ROM to compile).
  13.  
  14. Since sprintf() calls malloc() I decided to allocate 100 bytes before
  15. calling sprintf() (and immediately free the 100 bytes), and - sure enough -
  16. the app hung on the malloc() call.
  17.  
  18. It sounds like something is getting trashed somewhere, but I don't make
  19. any calls to malloc() (I use my own home-grown routines, which I am 99%
  20. sure are correct) so it's not like the run-time is suffering from memory
  21. fragmentation.
  22.  
  23. If *anyone* has any ideas what's going on, *please* let me know, since this
  24. is a "show stopper."
  25.  
  26. Cheers,
  27. Q
  28. -- 
  29. "If you choose not to decide, you  | "A fool and his money are fun to go
  30.  still have made a choice" - Rush  |  out with" - seen on a T-shirt
  31. ------------------------------------------------------------------------
  32.