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

Home » Public Forums » archive » 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: Array has a corrupted descriptor [message #58695 is a reply to message #25164] Wed, 13 February 2008 03:02 Go to previous messageGo to previous message
zhouqiang.search is currently offline  zhouqiang.search
Messages: 6
Registered: February 2008
Junior Member
On 12 Feb, 18:38, "Peter Mason" <peter.ma...@deleteme.csiro.au> wrote:
> zhouqiang.sea...@gmail.com wrote:
>
> <...>> IDL_DCOMPLEX *result = argv[2];
> <...>
>> result = complexarr(row , line)
>
> <...>
>
> Aside from the index-calc issue pointed out in the other post...
> You make a single-precision complex array (2 * 4 bytes per element) on the
> IDL side but you handle it as a double-precision one (2 * 8 bytes per
> element) on the C side. Your C code is going past the end of this array,
> tramping over things it shouldn't.
> In your C code, use IDL_COMPLEX instead of IDL_DCOMPLEX.
>
> Cheers
> Peter Mason

Hi , peter

I have fixed the problem this morning , just as you said , I took a
mistake about the data type.
Thanks for your reply. Because I am really new to use IDL , and I am
not very familiar about that ,
I think I need to work hard.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Object as a member to object/class
Next Topic: Get index from table widget

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

Current Time: Sat Oct 11 00:12:34 PDT 2025

Total time taken to generate the page: 0.08405 seconds