|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Here's the error I've been getting every now and then:
#declare vpmtemp = array[4][vpmS]
# <----ERROR
memory macro:64: error: Attempt to malloc zero size block
(File:TOKENIZE.C Line: 4451).
I have no idea what this means, but it seems to be some kind of a
problem in defining variables when using one macro within another. (?)
The only way I have been able to fix this is by doing this the long way
around and by trial and error since I have no idea what it means! Any
help or suggestions would be greatly appreciated.
- Ricky
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I cannot say for absolute certain without seeing the source code for POVray,
but I know that if vpmS is ever equal to zero, that would likely cause such an
error. "malloc" is the name for the instruction to allocate a block of memory.
When nesting this inside a macro, you may be experiencing a "look-ahead"
problem- the compiler has to evaluate everything before it can get the true
value of vpmS, and it may not do so at a certain nesting depth.
Just a thought, and it seems that I have seen a similar problem discussed
before.
Cheers!
Chip Shults
My robotics, space and CGI web page - http://home.cfl.rr.com/aichip
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <110720021604089456%reu### [at] chorusnet> , Reusser
<reu### [at] chorusnet> wrote:
> #declare vpmtemp = array[4][vpmS]
> # <----ERROR
Make sure vpmS is _not_ less or equal to zero!
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3d2f1669$1@news.povray.org>, Thorsten Froehlich
<tho### [at] trfde> wrote:
> Make sure vpmS is _not_ less or equal to zero!
DUMB MISTAKE on my part. I accidentally had the dimension_size
operator looking at the wrong (non-existent) dimension of an array, so
it returned a zero instead. I guess it makes perfect sense now...
Thanks!
- Ricky
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Reusser <reu### [at] chorusnet> wrote:
>> Make sure vpmS is _not_ less or equal to zero!
> DUMB MISTAKE on my part. I accidentally had the dimension_size
> operator looking at the wrong (non-existent) dimension of an array, so
> it returned a zero instead. I guess it makes perfect sense now...
> Thanks!
Of course the error message could be clearer...
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |