?
=?ISO-8859-1?Q?Martin_J=F8rgensen?=
Hi,
In continuation of the thread I made "perhaps a stack problem? Long
calculations - strange error?", I think I now got a "stable" error,
meaning that the error always seem to come here now (tried: visual
studio 2005 + linux/macintosh gcc)...
That's a pretty good thing. I think the error still appears using both
gcc and visual studio 2005. Everything is standard C (ANSI C ?? I don't
know the difference) - but since so many functions depend on different
variables it's hard for me to isolate the error or to make a minimal
example ready for posting...
What can I say: I don't get any compile errors/warning... I tried
valgrind, but it wrote something I didn't agree with or I didn't
understood what it disliked...
Instructions:
1) Download + unzip (there are no binaries so no viruses/spam/whatever)
2a) Under linux/mac os: just type "make" (makefile included)
2b) Under windows: I guess you just create a new project and drag the
*.c and *.h files into it and compile/build.
3a) Either run the program and see the error or
3b) put a breakpoint in "result_output.c" line 748, then step a few
lines and watch what happens.
What is wrong?
for(i=0; i<total_linepieces; i++);
{
printf("i = %d\n", i); /* i should be 0 now, right? */
if( i != 0)
{
printf("\n\nTHE PROGRAM DOESN'T WORK\n\n");
quit_program(__FILE__, __LINE__);
}
else
{
printf("\n\nTHANKS!!! THE PROGRAM WORKS\n");
quit_program(__FILE__, __LINE__);
}
}
Some memory-garbage-thing, probably...
I'm really really fed up and tired of this bug, because I can't find it
and the compiler doesn't help me...
I've prepared 2 archives: .zip + .tar.gz.
(enter code + click blue button "START DOWNLOAD")
zip: http://www.uploading.com/?get=N3PT46TP
(click "DOWNLOAD", yellow bar bottom right).
tar.gz: http://www.savefile.com/files/2695995
It would also be nice to know how to avoid such a problem in the future,
when the compiler doesn't help...
Best regards
Martin Jørgensen
In continuation of the thread I made "perhaps a stack problem? Long
calculations - strange error?", I think I now got a "stable" error,
meaning that the error always seem to come here now (tried: visual
studio 2005 + linux/macintosh gcc)...
That's a pretty good thing. I think the error still appears using both
gcc and visual studio 2005. Everything is standard C (ANSI C ?? I don't
know the difference) - but since so many functions depend on different
variables it's hard for me to isolate the error or to make a minimal
example ready for posting...
What can I say: I don't get any compile errors/warning... I tried
valgrind, but it wrote something I didn't agree with or I didn't
understood what it disliked...
Instructions:
1) Download + unzip (there are no binaries so no viruses/spam/whatever)
2a) Under linux/mac os: just type "make" (makefile included)
2b) Under windows: I guess you just create a new project and drag the
*.c and *.h files into it and compile/build.
3a) Either run the program and see the error or
3b) put a breakpoint in "result_output.c" line 748, then step a few
lines and watch what happens.
What is wrong?
for(i=0; i<total_linepieces; i++);
{
printf("i = %d\n", i); /* i should be 0 now, right? */
if( i != 0)
{
printf("\n\nTHE PROGRAM DOESN'T WORK\n\n");
quit_program(__FILE__, __LINE__);
}
else
{
printf("\n\nTHANKS!!! THE PROGRAM WORKS\n");
quit_program(__FILE__, __LINE__);
}
}
Some memory-garbage-thing, probably...
I'm really really fed up and tired of this bug, because I can't find it
and the compiler doesn't help me...
I've prepared 2 archives: .zip + .tar.gz.
(enter code + click blue button "START DOWNLOAD")
zip: http://www.uploading.com/?get=N3PT46TP
(click "DOWNLOAD", yellow bar bottom right).
tar.gz: http://www.savefile.com/files/2695995
It would also be nice to know how to avoid such a problem in the future,
when the compiler doesn't help...
Best regards
Martin Jørgensen