Date: Sun, 5 Jul 1998 15:58:10 +0300 (IDT) From: Eli Zaretskii To: Jedediah Smith cc: djgpp AT delorie DOT com Subject: Re: Integer division causes strange behavior In-Reply-To: <359F7F4E.3845@interlog.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 5 Jul 1998, Jedediah Smith wrote: > A program I am writing uses this function to round toRound up to the > nearest multiple of factor. The function is called thousands of times > and then later on a huge amount of text (about 500k) is output to stdout > using the cout class. While outputting all that text, sometimes right in > the middle of a cout call, the program aborts with some sort of > protection fault and then rhide aborts with an 'FPU not present' fault. > The weird thing is, I have narrowed the problem down to the line marked > with an arrow in the code below. Please redirect the stack traceback printed when your program crashes to a file, and post it here in its entirety. It is virtually impossible to help you without at least that info.