Magic infinite loop inside foreach

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Thu Jan 30 15:44:59 PST 2014


On 31/01/14 00:08, MrSmith wrote:
> Somehow if i comment out
> //matrix = solveTemp(temp);
> it works, but this method works fine, and after it done1 is printed. Strange.

That does rather suggest that it's that method that is causing things to get 
stuck.  Can you share what's inside it?  And when you say "this method works 
fine", do you mean that you've manually tested it with the temp variable that 
goes in before it hangs?

Could it be that whatever printout you're doing of variables like matrix is 
missing some tiny differences -- floating-point rounding errors? -- that are 
responsible for the transformations inside makeTemp or solveTemp behaving 
wrongly and therefore (in the latter case) getting stuck?


More information about the Digitalmars-d-learn mailing list