Welcome to iraf.net Tuesday, May 21 2024 @ 01:56 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 script with arrays and imhistogram hangs.
   
duvall
 04/30/2009 05:28PM (Read 1707 times)  
+++--
Chatty

Status: offline


Registered: 03/08/2006
Posts: 59
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

 
Profile Email
 Quote
fitz
 04/30/2009 05:28PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
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

 
Profile Email
 Quote
   
Content generated in: 0.07 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login