X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: mitran AT fas DOT harvard DOT edu (Patrick Mitran) Newsgroups: comp.os.msdos.djgpp Subject: Re: bug with time(NULL) and rhide? Date: 1 Feb 2004 20:45:28 -0800 Organization: http://groups.google.com Lines: 29 Message-ID: <3737dcaf.0402012045.7f35bbbd@posting.google.com> References: <3737dcaf DOT 0401312022 DOT 10576f5f AT posting DOT google DOT com> NNTP-Posting-Host: 65.96.174.89 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1075697129 20902 127.0.0.1 (2 Feb 2004 04:45:29 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Mon, 2 Feb 2004 04:45:29 +0000 (UTC) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote in message news:... > > From: mitran AT fas DOT harvard DOT edu (Patrick Mitran) > > Newsgroups: comp.os.msdos.djgpp > > Date: 31 Jan 2004 20:22:29 -0800 > > > > For example, from rhide, unless I exit rhide and restart, everytime > > I press ctrl-F9, I get (under WinXP for a particular run), > > > > 1075591010 > > > > From the cmd.exe prompt, the number increments every second as > > expected. > > > > Is this normal, or is it a bug? I am using gcc 3.2.3, rhide 1.5.0.1. > > It is certainly not normal. > > I cannot reproduce this on a Windows XP box, but I used GDB, not > RHIDE. Could you see if the problem still persists on your system if > you run the program under GDB? I tried it under GDB and the bug is not reproduced. But I think I have narrowed the problem with further experimentation though. The bug is only present if I ask Rhide to redirect stdout to a window. Furthermore, I noticed that the time reading does increment by 1 every 60 seconds (and not every second). I find this a bit odd... Patrick