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

Home » Public Forums » archive » Re: problem with call_external
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: problem with call_external [message #2780] Sat, 17 September 1994 14:32
robijn is currently offline  robijn
Messages: 18
Registered: June 1994
Junior Member
In article <1994Sep16.190433.9876@ll.mit.edu>,
Fred Knight <knight@ll.mit.edu> wrote:
>
> I am trying to call a c function from IDL, and it works *ONCE.* On the second
> call, I get the following:
>
> IDL> a=get_sdv_frame()
> % Unable to free memory: from array descriptor.
> Invalid argument
> % Execution halted at GET_SDV_FRAME </users/nuc/idl/pro/get_sdv_frame.pro(
> 46)> .
> % Called from $MAIN$ .
> IDL>
>
[....]

> ---------------------------- c code in .so file ---------------------
>
> int get_sdv_frame(argc,argv)
> int argc ;
> void *argv[] ;
> {
> [...]
> free(argv[1]);
> printf("done\n") ;
> }

What? you are freeing memory that IDL has allocated? Are you absolutely
sure you can do that?

Frank
--
_____ ____
/ / / Frank Robijn Internet: Robijn@Strw.LeidenUniv.NL
/___ /___/ Sterrewacht Leiden Bitnet: Robijn@HLERUL51
/ / \ Phone (31) 71 275841 Local: Robijn@HL628
/ / \ Fax : (31) 71 275819 Snail: P.O.Box 9513, 2300 RA Leiden,
The Netherlands
[Sorry, the following lines are blank. If these are not present
the article is not accepted because there's more included text than new text.]
[Message index]
 
Read Message
Previous Topic: Re: Rect 2 Polar Conversion
Next Topic: function libraries for PV-WAVE

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

Current Time: Fri Oct 10 10:41:51 PDT 2025

Total time taken to generate the page: 0.24421 seconds