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

Home » Public Forums » archive » Re: external c shared libraries
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
Re: external c shared libraries [message #16580] Fri, 06 August 1999 00:00
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
David,
Note of sympathy: I have the same problem on the Sun version and I haven't
found a way around it. A few time I crashed the workstation completely by
recompiling while IDL and the library being active.

Regards,
Haje

"D. Mattes" wrote:

> hello IDL gurus: i have a couple questions re: calling external c
> functions from IDL. platform: unix OSF/1, version: IDL 5.2
>
> 1) in doing development, debugging, etc. i notice that once the shared
> library is changed (recompiled), IDL will crash and burn if i try and
> access the changed shared lib. i can understand this happening, but is
> there a way to prevent this?

--
------------------------------------------------------------ ----------------
Haje Korth
Space and Atmospheric Sciences (NIS-1)
MS D466
Los Alamos National Laboratory
Los Alamos, NM 87545
Phone: (505) 667-0788
FAX: (505) 665-7395
e-mail: hkorth@lanl.gov
------------------------------------------------------------ ----------------
Re: external c shared libraries [message #16593 is a reply to message #16580] Fri, 06 August 1999 00:00 Go to previous message
Nando Iavarone is currently offline  Nando Iavarone
Messages: 48
Registered: December 1998
Member
<HTML>
D. Mattes wrote:
<BLOCKQUOTE TYPE=CITE>2)&nbsp; my shared library function returns the correct
values into IDL, but
<BR>then a few moments later, as IDL is waiting statically for user input,
IDL
<BR>will just seem to spontaneously crash.&nbsp; why?&nbsp; mind you, this
only occurs
<BR>with IDLDE.&nbsp; with the line command version IDL, i never get a
crash.</BLOCKQUOTE>
I had the same problem when in the external code I used string,and I forgot
to close them (\0 terminator) in the string structure of IDL.
<BR>But the crash was not prevedible (i.e.: you can use the string in IDL
and to see it ok,
<BR>but another parameter is corrupted).
<BR>have you the external code of the function you call from IDL?

<P>warn us if you find the problem and the solution.
<BR>ciao.
<PRE>--&nbsp;
Nando Iavarone
Advanced Computer System - SPACE DIVISION
via Lazzaro Belli, 23
00040&nbsp; Frascati - RM
Tel: +39-6-944091 (switchboard)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 9440968 (direct)
E-mail:&nbsp;
&nbsp;&nbsp;&nbsp; f.iavarone@acsys.it
&nbsp;&nbsp;&nbsp; FrdndVrn@altavista.net</PRE>
&nbsp;</HTML>
Re: external c shared libraries [message #16601 is a reply to message #16580] Thu, 05 August 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
D. Mattes (dmattes@u.washington.edu) writes:

> 1) in doing development, debugging, etc. i notice that once the shared
> library is changed (recompiled), IDL will crash and burn if i try and
> access the changed shared lib. i can understand this happening, but is
> there a way to prevent this?

Not currently. But I hear totally unsubstantiated rumors that
the times, they are a changin'. :-)

> 2) my shared library function returns the correct values into IDL, but
> then a few moments later, as IDL is waiting statically for user input, IDL
> will just seem to spontaneously crash. why? mind you, this only occurs
> with IDLDE. with the line command version IDL, i never get a crash.

Don't know. You getting some kind of error message, or
IDL just folds up its tents and goes home?

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: Medical Imaging Question
Next Topic: Modal Windows and Object Graphics

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

Current Time: Wed Oct 08 15:28:23 PDT 2025

Total time taken to generate the page: 0.00620 seconds