Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > printf problem
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 28th December 21:34
nitish_jain_79
External User
 
Posts: 1
Default printf problem


hi,
I am getting this unique prb. When I put more printfs my code is
working fine if I remove some it crashes. Any suggestions y it is so ?
I am working on PSOS.

regards
NJ
  Reply With Quote


  sponsored links


2 28th December 21:34
kevin d. quitt
External User
 
Posts: 1
Default printf problem


Not so unique. It sounds like you're running out of RAM and have a wild pointer
that you're writing through, clobbering your code. With more printfs in place,
you happen to be writing somewhere that clobbers something else.


--
_
Kevin D. Quitt 91387-4454 Kevin@Quitt.net
96.37% of all statistics are made up
  Reply With Quote
3 28th December 21:34
kevin d. quitt
External User
 
Posts: 1
Default printf problem


Also watch out for the problem of printing something too large (e.g., 64 bytes)
using printf, as it can lock up the system, or at least the I/O.


--
_
Kevin D. Quitt 91387-4454 Kevin@Quitt.net
96.37% of all statistics are made up
  Reply With Quote
4 28th December 21:34
peter frageorgia
External User
 
Posts: 1
Default printf problem


Hi,

This is probably a stack problem. printfs can mask them. Check
for parameter mismatches in function calls.

--
Peter Frage****a
MIT Lincoln Lab
frage****a@ll.mit.edu
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666