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

Home » Public Forums » archive » Re: Problems with IDL call_external to C shared object
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: Problems with IDL call_external to C shared object [message #21984] Fri, 13 October 2000 00:00 Go to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
Mark Rivers wrote:
>
> I've done a lot of this, and it's not that hard, don't give up!
>
> Here are some tricks:
>
> - All arrays which need to be passed between IDL and C must be allocated in
> IDL, as J.D. Smith said. This includes both arrays being passed from IDL to
> C and from C back to IDL. Sometimes this requires an initial call to the C
> code to return the array sizes which IDL will allocate, if the array sizes
> are not known to IDL beforehand.
>

Alternatively, you can use the LINKIMAGE or DLM interface where the C
code
can create any IDL variable required. Albeit at the expense of a greater
learning curve.

--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: object wizards
Next Topic: Re: Reading tab delimited string data

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

Current Time: Thu Oct 09 02:51:46 PDT 2025

Total time taken to generate the page: 2.79708 seconds