Path: chuka.playstation.co.uk!news From: "Jon Prestidge (Jon@surfed.to)" Newsgroups: scee.yaroze.freetalk.english Subject: Re: printf misses some data Date: Sun, 17 Feb 2002 23:59:43 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 31 Message-ID: References: <01c1b80a$054869a0$3371933e@pal-s-omnibook> NNTP-Posting-Host: 213.122.38.94 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 I don't know of a flush buffer routine..... but you could force a buffer flush in a really naff way by printing a load of Xs or some other text. But the buffer probably isn't the problem because I would have thought it would print the whole string if it's printed any at-all. Try using SIOCONS if you're using PSComUtil or visa-versa. I've had problems with printfs in the past....and the only thing that seemed to solve the problem was reducing the amount of text in printf statements through-out my program (even, and especially, printfs that don't get executed). Jon pal wrote in message news:01c1b80a$054869a0$3371933e@pal-s-omnibook... > I'm using printf to record a lot of debug info, and it appears that once in > a while (very rarely but enough to really annoy me), a chunk of data isn't > received by my pc. Eg "printf("%X",i)" may print just "12" when i is > actually 123! > > I made my data as small as possible but this still happens. Any help, > hints, workarounds, thoughts? Is there some sort of fflush available (i > couldn't find it)? > > pal >