POV-Ray : Newsgroups : povray.beta-test : Array/declare memory (?) bug in b5 : Array/declare memory (?) bug in b5 Server Time
30 Jul 2024 18:15:52 EDT (-0400)
  Array/declare memory (?) bug in b5  
From: Redbeard (MDJohnson)
Date: 8 Oct 2001 01:57:57
Message: <3bc14065$1@news.povray.org>
Pov 3.5b5, AMD Athlon 700, 192MB Windows 98SE

I think this is probably a memory.  When I run the following file, POV-Ray
disappears while parsing.  No error reports are generated by Windows or
POV-Ray.  POV-Ray just silently shuts down.

The file 'trace.txt' has consecutive numbers from 0 to 760.  It also fails
on multidimensional arrays, but sooner.  If you take out the #declare Q=1;
it doesn't crash.

#macro Print(X)
    #fopen DFile "trace.txt" append
    #write (DFile, str(X,-3,0), "\n")
    #fclose DFile
#end

#declare G = array[1000]
#declare X = 0;
#while (X < 1000)
    Print(X)
    #declare Q = 1;
    #declare X = X + 1;
#end

Michael

-----
camera{location<8,20>look_at<6,0,4>}light_source{<8,8>rgb
1}difference{union{
#macro M(D,J)#local
R=asc(substr(D,J,1))-32;<div(R,10)*2,mod(R,10)>#end#macro
E(D,B,R)prism{-D,4+D,R#local C=1;#while(C<R+1)M(B,C)#local C=C+1;#end}#end
E(
0," (2:FPKAD80* U_dZU"18)sphere{2,2}#macro
T(N)cylinder{<9,-N,3><9,4+N,3>3-N}
#end T(0)}T(2)E(1"45LNXUK4"8)pigment{rgb x+y/2}}//(c)2001
MDJohnson(Redbeard)


Post a reply to this message

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