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

Home » Public Forums » archive » how to pass array from dll into IDL?
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: how to pass array from dll into IDL? [message #25704 is a reply to message #25656] Tue, 10 July 2001 02:27 Go to previous message
nmw is currently offline  nmw
Messages: 18
Registered: January 1995
Junior Member
In article <3B465516.C851CAB4@home.com>, Randall Frank <rjfrank1@home.com> writes:
> Nigel,
> Make sure you supply a free_cb function in your example.
>
> The line:
>
> array = IDL_ImportArray(1, dims, IDL_TYP_BYTE, data, NULL, NULL);
>
> should read something like:
>
> array = IDL_ImportArray(1, dims, IDL_TYP_BYTE, data,
> (IDL_ARRAY_FREE_CB)free, NULL);
>
> to avoid a memory leak in your example.
>
> FWIW.
>

Very good point!

--
-----------------------------------------------------------
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
Read Message
Previous Topic: angles from rotation matrix
Next Topic: Looking for IDL code to read Excel spreadsheet

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

Current Time: Wed Oct 08 16:49:26 PDT 2025

Total time taken to generate the page: 0.00398 seconds