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

Home » Public Forums » archive » Calling IDL from Fortran called by 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: Calling IDL from Fortran called by IDL [message #28316 is a reply to message #28236] Wed, 28 November 2001 14:38 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
"Mark Rivers" <rivers@cars.uchicago.edu> writes:

> Craig Markwardt <craigmnet@cow.physics.wisc.edu> wrote in message
> news:onherfoc0q.fsf@cow.physics.wisc.edu...
>>
>> Oooh, but be careful, because if you allow your IDL variable to be
>> released, say by reassigning it, then your external C routine will
>> probably end up overwriting some part of memory you didn't want it to.
>
> Yes, this technique should only be used for carefully written IDL
> "applications", and not for interactive use. Any IDL variable whose address
> has been passed to the external C or FORTRAN code can never appear on the
> left hand side of an assignment.
...
> This idea can be directly applied to the problem of interacting with
> compute-bound FORTRAN code.
...
> This eliminates that problem because the FORTRAN is a new process, not a
> thread.

These are all really great ideas! Thanks. The only thing I worry
about is Kevin's initial mention of the dreaded word, "Windows" :-)

I really like your ideas on polling a widget for an abort event. I've
been thinking about how to do that for something like MPFIT, but
didn't want to figure out all the details. Looks like you did it for
me!

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Recursive object destruction, Was: IDL Shapefile Object
Next Topic: Re: Recursive object destruction, Was: IDL Shapefile Object

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

Current Time: Sat Oct 11 15:29:59 PDT 2025

Total time taken to generate the page: 1.27866 seconds