Do you explain your "limp" to your doctor over the phone, and expect her to diagnose your broken ankle? We need more information! Quite how you expect us to extrapolate your 1000+ lines from only the one line you posted is beyond me. The collected wisdom of the site can then tell you all the things which are simply wrong with the code, or which are dubious enough to change for something better. If you can get it down to a couple of hundred lines, then I suggest you post the complete code. > As for posting one line of code, this a 1000+ lines algorithmĪll the more reason to then work on trying to cut away as much as you can whilst still preserving the nature of the problem.
Any of you know what the problem could be? 'Cause I have no idea what the problem is, which means that I wouldn't even know how to fix it. There is no crash, even though the output would exactly be the same (without crashes).
In other words, when I replace the above with: printf("i: %d j: %d ", i, j) When I split these two parts into 2 printf statements, it does NOT crash. There are 2 parts to my printf: the location in the array, and the value itself. My print line looks like this: printf("i: %d j: %d value: %lf\n", i, j, value) For some specific value, it'll crash when trying to print it. As far as myself and my primitive knowledge are concerned, this litterally does not make any sense at all, but maybe you guys can make some sense out of it.īasically, inside a loop, I modify a float variable (which is actually an array), and then right after I modify it, I print its value. I have somewhat of a mysterious crash on my program.