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

Home » Public Forums » archive » Re: Error: Array has a corrupted descriptor
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Error: Array has a corrupted descriptor [message #51562 is a reply to message #51561] Tue, 28 November 2006 07:49 Go to previous messageGo to previous message
gqshen2008@gmail.com is currently offline  gqshen2008@gmail.com
Messages: 9
Registered: October 2005
Junior Member
David,
Thank you for paying attention to my question. Bascially, "do
something here" is just some basic array manipulation like:
arr = arr3D[1:2, *]
arrInd[0, *] -= a
arrInd[1, *] -= b
arr[arrInd] = 1B
aLabeled = Label_Region(arr)

FOR j = 1, MAX(aLabeled) DO BEGIN
ithIdx = (WHERE(aLabeled EQ j))[0]
outputList = [outputList, ithIdx]
ENDFOR

I hope your eagle eye can find out where the glitch comes from. :-).

Really Grateful,
Gongqin
David Fanning wrote:
> Gongqin Shen writes:
>
>> I have this problem when I have to initialized a same-name array
>> multiple times. It goes like this:
>> FOR i = 1, N_ELEMENTS(list) - 1 DO BEGIN
>> arr = BYTARR(list[i], list[i-1])
>> Do Something here....
>> END
>>
>> After a few, somewhere around 5, runs, the program crashes and reports
>> this error:
>> ERROR: Array has a corrupted descriptor.
>>
>> I searched through the archives, and there is one thread about DICOM
>> image disposal addressed the similar question. I am wondering is there
>> anybody who knows how to get around this?
>
> This is usually a LHS problem. I think the secret lies
> in the "Do Something here..." part of the code. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Error: Array has a corrupted descriptor
Next Topic: natural neighbor interpolation

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

Current Time: Thu Oct 09 07:52:53 PDT 2025

Total time taken to generate the page: 0.39898 seconds