Oject programming error in non-object program [message #80517] |
Thu, 21 June 2012 10:28 |
David Klassen
Messages: 27 Registered: December 2004
|
Junior Member |
|
|
This is frustrating me because my IDL skills are at the IDL 5.0 level, but since ITT won't allow me to simply move software, I have to re-buy each time I get a new machine, I have IDL 8...
The program is a massive thing and mostly works fine but every now and again (and I can't find a reason---but it seems to happen if I recompile the program) I get this error:
% Object reference expression not allowed in this context: <OBJREF
(<ObjHeapVar16(LIST)>)>.
and I have no clue what it means. The program was written in IDL 3, and last updated under IDL 5 so there are no object oriented programming statements.
The crash happens on:
for ii=0l,n_list-1 do oplot,$
[new_vecs(list(ii),i)],[new_vecs(list(ii),j)],$
psym=pssym,color=k_col(list(ii))
where:
II LONG = 0
N_LIST LONG = 22159
NEW_VECS (PCA2) DOUBLE = Array[583200, 64]
LIST LONG = Array[22159]
I INT = 2
J INT = 1
PSSYM INT = 8
K_COL INT = Array[583200]
Note, that a plot has already been set up using
plot,new_vecs(list,i),new_vecs(list,j),/nodata,xstyle=3,ysty le=3,$
title=titl, subtitle=sub_title, xtitle=xt, ytitle=yt,$
xrange=xrange,yrange=yrange,charthick=3,charsize=1.2,$
xthick=2,ythick=2
Any ideas on what the clash might be?!
Thanks!
|
|
|