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

Home » Public Forums » archive » Call_External on IDL5.0
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
Call_External on IDL5.0 [message #18678] Thu, 03 February 2000 00:00 Go to next message
whowhere is currently offline  whowhere
Messages: 1
Registered: February 2000
Junior Member
Hi -

I have an annoying problem when using call_external on a sunOS
with IDL v 5.0. I call C subroutines.

It works fine if I exit from IDL and recompile from scratch
But if I make a change to the C program and compile it using
cc -G -Kpic -c junk.c
ld -G -o junk.so junk.o

then do
IDL> .r junkcaller
IDL> junkcaller
it gives
Segmentation fault (core dumped) or
Illegal instruction (core dumped)
and crashes IDL.

Then I restart IDL, do the same as above, without changing anything., It
works fine
Has anybody else faced this wierdness ?
I assure you there is no problem with either the code or the
calling because it works fine the second time I do it. It can't be some
cross-referencing
issue because IDL crashes - so the cross referencing can;t be saved.

Thanks for your time, Ranga
Re: Call_External on IDL5.0 [message #18810 is a reply to message #18678] Fri, 04 February 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
whowhere (rchary@ucolick.org ) writes:

> I have an annoying problem when using call_external on a sunOS
> with IDL v 5.0. I call C subroutines.
>
> It works fine if I exit from IDL and recompile from scratch
> But if I make a change to the C program and compile it using
> cc -G -Kpic -c junk.c
> ld -G -o junk.so junk.o
>
> then do
> IDL> .r junkcaller
> IDL> junkcaller
> it gives
> Segmentation fault (core dumped) or
> Illegal instruction (core dumped)
> and crashes IDL.

This has been fixed in IDL 5.3. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Projects, anyone?
Next Topic: Faster than this...

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

Current Time: Fri Oct 10 13:25:41 PDT 2025

Total time taken to generate the page: 1.12528 seconds