POV-Ray : Newsgroups : povray.beta-test : another string bug (or even two) Server Time
4 Nov 2024 17:36:49 EST (-0500)
  another string bug (or even two) (Message 1 to 5 of 5)  
From:
Subject: another string bug (or even two)
Date: 26 Sep 2001 13:58:36
Message: <3b54rt8puoibdtdsquqgv1fuo0m9mn6k30@4ax.com>
POV 3.5b4 on PII 233 128 MB with NT4Sp6

first bug is within documentation

I remember that long time ago Ron or somebody promised on news that
there will be ulimited length of strings - than why there is in the
documentation sentence "String literals begin with a double quote mark
'"' which is followed by up to 256 characters"

To check this I've declared variable with 340 characters and it was
parsed ok.

To check again I wrote little script

#local S="A"
#local Counter=0;
#while(Counter<20)
  #local S=concat(S,S)
  #local Counter=Counter+1;
#end

and it was parsed ok, too

but when I added #warning S
at end of it povray... disappeared

and it is second bug - it even not crash, just no povray on desktop or
taskbar

ABX


Post a reply to this message

From: Ron Parker
Subject: Re: another string bug (or even two)
Date: 26 Sep 2001 14:03:54
Message: <slrn9r463r.a3b.ron.parker@fwi.com>

>but when I added #warning S
>at end of it povray... disappeared
>
>and it is second bug - it even not crash, just no povray on desktop or
>taskbar

NT does that sometimes.  It's still a crash.

-- 
#local R=rgb 99;#local P=R-R;#local F=pigment{gradient x}box{0,1pigment{gradient
y pigment_map{[.5F pigment_map{[.3R][.3F color_map{[.15red 99][.15P]}rotate z*45
translate x]}]#local H=pigment{gradient y color_map{[.5P][.5R]}scale 1/3}[.5F
pigment_map{[.3R][.3H][.7H][.7R]}]}}}camera{location.5-3*z}//only my opinions


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: another string bug (or even two)
Date: 26 Sep 2001 15:00:59
Message: <3bb225eb$1@news.povray.org>

Skiba <abx### [at] babilonorg>  wrote:

> I remember that long time ago Ron or somebody promised on news that
> there will be ulimited length of strings - than why there is in the
> documentation sentence "String literals begin with a double quote mark
> '"' which is followed by up to 256 characters"

I have no recollection of anybody ever making that promise for POV-Ray 3.5.
The dcoumentation is correct.


    Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From:
Subject: Re: another string bug (or even two)
Date: 27 Sep 2001 02:35:14
Message: <rsh5rt8tvbrgsflfv5tvj7h3nqd8ehoqt4@4ax.com>
On Wed, 26 Sep 2001 15:00:54 -0400, "Thorsten Froehlich"
<tho### [at] trfde> wrote:
> > I remember that long time ago Ron or somebody promised on news that
> > there will be ulimited length of strings
>
> I have no recollection of anybody ever making that promise for POV-Ray 3.5.

well... please look at the thread and read author of promise
http://news.povray.org/povray.advanced-users/6128/

ABX


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: another string bug (or even two)
Date: 27 Sep 2001 11:23:43
Message: <3bb3447f@news.povray.org>

Skiba <abx### [at] babilonorg>  wrote:

>> I have no recollection of anybody ever making that promise for POV-Ray 3.5.
>
> well... please look at the thread and read author of promise
> http://news.povray.org/povray.advanced-users/6128/

Hmm, I should really not make promises in such a general way :-(

In a lot of cases strings can really be infinite 9limited by memory), but
there are some practical limits, too.  In your particular case it a plain
old buffer overflow in a (s)printf.  So the string can be infinitely long,
but you can't print it.  Of course it should not crash.  However, you will
be able to use it for the text object.


    Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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