POV-Ray : Newsgroups : povray.beta-test : array size : array size Server Time
30 Jul 2024 18:18:20 EDT (-0400)
  array size  
From:
Date: 12 Oct 2001 10:17:53
Message: <Xns9138A5CA83B91wulfhueskendigitalde@204.213.191.226>
I'm not sure if this has been posted before...

Pov Ray 3.5 beta 5 crashes while reading/initializing an array with more 
than  about 750 elements ("program terminated with an error..."). This 
doesn't happen with Pov Ray 3.1g.

My system is: Win2000 SP2 / Dell Dimension 8100 / P4 1,3Ghz / 256 MB RAM

The code is as follows:

#version 3.5;

#include "colors.inc"

global_settings {
  assumed_gamma 1.0
}

// ----------------------------------------

light_source {
             <0, 0, 0>            
             color rgb <1, 1, 1>  
             translate <-30, 30, -30>
             }

// ----------------------------------------

//reading of values from input.txt to an array

#declare data = array[780];
#fopen input "input.txt" read
#declare I = 1;

#while (defined(input))
       #declare data[I] = 0;
       #read (input, data[I])
       #declare I = I+1;  
#end


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.