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

Home » Public Forums » archive » dynamic memory in call_external
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
dynamic memory in call_external [message #14177] Mon, 25 January 1999 00:00
Vapuser is currently offline  Vapuser
Messages: 63
Registered: November 1998
Member
I have someone in my office who wants to know:

Is it advisable to create and destroy memory within a CALL_EXTERNAL
routine? (that is, can one safely use malloc and free?) Or must one
make the routine(s) in question LINKIMAGE routines and the idl memory
management routines (IDL_MEMAlloc, IDL_MEMfree and IDL_GetScratch)
available in that environment.

Secondly, can one create an array in IDL (in the interpreter) that
is page aligned (i.e. as if one had done it using the 'valloc' version
of malloc in C) which can then be passed down into the CALL_EXTERNAL
routine.

This comes from someone who is trying to write wrappers for a set of
device drivers for a data capture board.


whd
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: looking for image registration program
Next Topic: scientific data format

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

Current Time: Fri Oct 10 09:57:58 PDT 2025

Total time taken to generate the page: 0.56196 seconds