POV-Ray : Newsgroups : povray.bugreports : pov 3.7 array and for strangeness : Re: pov 3.7 array and for strangeness Server Time
26 Apr 2024 18:08:39 EDT (-0400)
  Re: pov 3.7 array and for strangeness  
From: William F Pokorny
Date: 23 May 2023 07:22:29
Message: <646ca1f5$1@news.povray.org>
On 5/14/23 17:16, Leroy wrote:
> So I tried this.
> 
>     #local Tc=Image_Width * Image_Height;
>     #for(a,0,Tc)//--- notice the change------
>      #write (Mfile,uint8 Image[a])// The image array still contain Integers<256
>     #end
> POV didn't crash !?  And the image worked!!

I don't know why you see what you do.

In some quick tests on linux the parser always stops with an error once 
the array subscript goes out of range on the very last 'for loop' step. 
And I don't have problems with the larger array.

A wild guess is maybe the file handle (Mfile) isn't always getting 
closed in the SDL and the file buffering or render completion handling 
for open file handles not explicitly closed is in some way different on 
windows? It's a wild guess that I don't think the likely.

Bill P.


Post a reply to this message

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