News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Fatal error into while loop

Started by PauloH, May 20, 2009, 04:41:04 AM

Previous topic - Next topic

PauloH

Hello,

I was coding this program to tell about loops on C and the compiler emitted this fatal error:
--> fatal error: Internal error: 'Access violation' at 0x00408325.

#include <stdio.h>

int main (void)
{
int i;

for (i = 0; i < 10000; i++)
{
if (i % 200 == 0)
{
printf("%d eh multiplo de 200\n", i);
break;
}
}

i = 1;

while (i < 10000)
{
if (i % 200 == 0)
{
printf("%d eh multiplo de 200\n", i);
break;
}

//i++;  ----> The problem is here. Without the comment the compilation goes without error.
}

return 0;
}



I'm using the last Version 6.00 RC1. LCC-Win32 compiles it without errors.
Attached are the zipped project and a image an image with the error.

Pelle

/Pelle