comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDLgrROI bug
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDLgrROI bug [message #67230] Mon, 20 July 2009 23:48
Robbie is currently offline  Robbie
Messages: 165
Registered: February 2006
Senior Member
Hi,

I just found a rather interesting bug that has been eluding me for the
last 2 years! This code should crash IDL for windows, versions 6.1,
6.4 and 7.0. I've created an incident with ITT support.

pro rkbroitest

oWindow = obj_new('IDLgrWindow')
oView = obj_new('IDLgrView')
oModel = obj_new('IDLgrModel')
oView -> add, oModel


oROI = obj_new('IDLgrROI')
oModel -> Add, oROI
for i=0,1000 do begin
len = i+1
for j=0,len[0]-1 do begin
p = randomu(seed,2)
p = 2*p-1
oROI -> AppendData, p[0], p[1]
endfor
oWindow -> Draw, oView
oROI -> GetProperty, N_VERTS=n_verts
oROI -> RemoveData, COUNT=n_verts

endfor
obj_destroy, oROI
obj_destroy, oWindow
end
[Message index]
 
Read Message
Previous Topic: Re: IDL workbench, inheritance, content assist/autocomplete
Next Topic: Re: Fit a Gaussian to a Histogram Plot

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 02:49:35 PDT 2025

Total time taken to generate the page: 0.64317 seconds