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

Home » Public Forums » archive » CALL_EXTERNAL puzzle?
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: CALL_EXTERNAL puzzle? [message #12766 is a reply to message #12680] Thu, 03 September 1998 00:00 Go to previous message
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
rmlongfield@my-dejanews.com wrote:

> print,'de-referenced pointer: ',*filename
> result = CALL_EXTERNAL(VALUE=[1B],'example_c.so','example_c', filename)

Whooa - here you're sending a *pointer* to a *string* variable
into the call_external routine - and it's definitely *not* set
up to receive it! In fact, your routine would *only* work if
you sent it a scalar string that is passed by *value* only.
(E.g. a string literal)

> So, is this a bug or a feature of CALL_EXTERNAL which I didn't quite grasp
> from the excellent documentation ;) I hate to think that my success with
> CALL_EXTERNAL was merely accidental.

Sorry to say it's a feature :-)

Regards,

Stein Vidar
[Message index]
 
Read Message
Read Message
Previous Topic: Re: call external speed
Next Topic: Re: Making IDL Code Available

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

Current Time: Sat Oct 11 07:31:37 PDT 2025

Total time taken to generate the page: 0.00236 seconds