NO

Author Topic: Fatal error into while loop  (Read 2262 times)

PauloH

  • Guest
Fatal error into while loop
« on: May 20, 2009, 04:41:04 AM »
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.
Code: [Select]
#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.
« Last Edit: May 21, 2009, 01:49:10 AM by PauloH »

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Fatal error into while loop
« Reply #1 on: May 20, 2009, 07:42:20 PM »
OK, I can reproduce it.
/Pelle