Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Array has a...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 5423 of 6400
Post > Topic >>

Re: Array has a corrupted descriptor

by "Peter Mason" <peter.mason@[EMAIL PROTECTED] > Feb 12, 2008 at 11:38 PM

zhouqiang.search@[EMAIL PROTECTED]
 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
 




 5 Posts in Topic:
Array has a corrupted descriptor
zhouqiang.search@[EMAIL P  2008-02-12 09:41:26 
Re: Array has a corrupted descriptor
=?ISO-8859-2?Q?F=D6LDY_La  2008-02-12 19:00:39 
Re: Array has a corrupted descriptor
zhouqiang.search@[EMAIL P  2008-02-12 13:38:38 
Re: Array has a corrupted descriptor
"Peter Mason" &  2008-02-12 23:38:07 
Re: Array has a corrupted descriptor
zhouqiang.search@[EMAIL P  2008-02-13 03:02:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 16:20:56 CST 2008.