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 #58697 is a reply to message #25164] Tue, 12 February 2008 15:38 Go to previous messageGo to previous message
Peter Mason is currently offline  Peter Mason
Messages: 145
Registered: June 1996
Senior Member
zhouqiang.search@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
[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: Fri Oct 10 11:17:20 PDT 2025

Total time taken to generate the page: 0.64221 seconds