On Monday 02 May 2005 22:10, duneldaion@web.de wrote:
I experience a strange problem with a C-Program. When I run it on different machines, sometimes it produces different results, and sometimes it doesn't.
You need to be a lot more specific for any meaningful investigation of that.
Basically, there seem to exist two different cases: a) I compiled the program at the end of January. The compiled binary was copied to different computers, and produces different results on different machines. b) I recompiled the program recently. With the _new_ binary of April, all machines calculate the same result!
There could be all kinds of strange side effects - plain bugs in your code
that show up only sometimes, variables that are not initialized properly, all
kinds of library function calls that might behave differently in different
environments.
There is no way of telling without really seeing the sources of that program.
If you post them here (or preferably a link to them to avoid oversized list
postings), somebody might be inclined to investigate that further - but of
course since this is a free community there is no guarantee for that.
(And no, I don't want the sources as personal mail ;-) )
CU
--
Stefan Hundhammer