POV-Ray : Newsgroups : povray.beta-test : Crash: Windows - redeclared local variables. Server Time
31 Jul 2024 00:26:12 EDT (-0400)
  Crash: Windows - redeclared local variables. (Message 1 to 2 of 2)  
From: autowitch
Subject: Crash: Windows - redeclared local variables.
Date: 28 Sep 2001 11:25:39
Message: <3bb49673$1@news.povray.org>
I don't know if this has already been reported or not (so bear with me if it
already has been).

The scene:

#local fn_X = function(x,y,z) { x*x + y*y - 1 }
#local fn_X = function(x,y,z) { x*y + y*x - 1 }

when rendered will crash PovRay 3.5 editor with the following message:
'The instruction at "0x0046539d" referenced memory at "0x00000105".  The
memory could not be "read".'  (I'm not sure just what Windows was really
trying to do when it wanted to "read" the data.  Maybe it had to be
"written" first <g>).

Tested on Win2k and Win98.

It appears to be an issue with using the same fairly complicated local
variable.  Using
#declare will not exhibit the same behavior.  Neither will:

#local fn_X = 3;
#local fn_X = 4;

-autowitch
www.autowitch.org


Post a reply to this message

From: Christoph Hormann
Subject: Re: Crash: Windows - redeclared local variables.
Date: 28 Sep 2001 12:43:48
Message: <3BB4A995.834369@gmx.de>
autowitch wrote:
> 
> I don't know if this has already been reported or not (so bear with me if it
> already has been).
> 
> The scene:
> 
> #local fn_X = function(x,y,z) { x*x + y*y - 1 }
> #local fn_X = function(x,y,z) { x*y + y*x - 1 }
> 
> [...]

I can confirm that,

note that declaring functions and declaring variables are two different
things, for a long time during pre-beta, it was not possible to '#local'
functions at all.

Workaround: '#undef' between

Note to Thorsten (or whoever):  It does not crash with the intel-compile.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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