script with arrays and imhistogram hangs.
Tom Duvall wrote on Apr 30, 2009
The following script hangs on execution. If one replaces the names of the arrays by different names, like t1[4], t2[4], then things work ok.
procedure imhst_test (i)
int i { min=1, max=4, prompt="which index to use"}
begin
real z1[4], z2[4]
z1[1] = 0
z2[1] = 10
z1[2] = 0
z2[2] = 100
z1[3] = 0
z2[3] = 500
z1[4] = 0
z2[4] = 20000
imhistogram ("dev$pix", z1=z1, z2=z2, binw=2.5)
end </div> --- **Mike Fitzpatrick** wrote on Apr 30, 2009
procedure imhst_test (i)
int i { min=1, max=4, prompt="which index to use"}
begin
real z1[4], z2[4]
z1[1] = 0
z2[1] = 10
z1[2] = 0
z2[2] = 100
z1[3] = 0
z2[3] = 500
z1[4] = 0
z2[4] = 20000
imhistogram ("dev$pix", z1=z1, z2=z2, binw=2.5)
end </div> --- **Mike Fitzpatrick** wrote on Apr 30, 2009
This appears to be a memory bug in the CL caused by the parameter lookup mechanism, the 'hang' is a fault that happens in a changing location as you re-run the script. I'll add it to the bugfix list for the next release, for now the workaround is obvious. Thanks for the report.
-Mike
---
*Last post on Apr 30, 2009*
-Mike