/****************************************************************************/
/* Function: Demonstration of a crashing program
/* Status:   20-feb-2008, wlm.
/****************************************************************************/

#include <stdio.h>
#include <stdlib.h>

int main ()
{
  /* declarations */
  int ptrInt[100];
  int i;
  
  for (i = 0 ;  ; i++) {    /* Infinite loop that at some point runs out of the memory */
      ptrInt[i] = (i+1)* i ; 
      fprintf(stderr,"PtrInt: %d, %d\n",i,ptrInt[i]);
  }

#ifdef _WIN32
    system("PAUSE");
#endif

  return (0);
}
