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

Home » Public Forums » archive » Re: Segmentation Fault
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: Segmentation Fault [message #10738] Wed, 21 January 1998 00:00
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Koon-Pong Wong wrote:
>
> Hi,
>
> I have a couple of questions about calling an external program
> in PV-Wave (v5.0). I don't know whether these questions have been
> answered before.
>
> I have some application programs that were written in standard C.
> When I used LINKNLOAD to call these programs with a wrapper
> routine, I got SEGMENTATION FAULT occassionally. The result is --
> the session crashed and returned to the operating system. Does
> anyone encounter this kind of error before ?? Is this error
> occurred in calling external programs only ?? Is there any way to
> avoid it ??

A segmentation fault when using linking external programs almost
always occurs because one or more of the arguments do not have the
same data type. You can also have problems if your routine tries to
access an element of an array that is out-of-bounds.

My first suggestion would be to use CALL_EXTERNAL, it that is
available in PV-Wave (I'm an IDL user). This is a much simpler
interface. Email me if you would like to see example code.

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: interpolation!
Next Topic: Re: Calling Help Files

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

Current Time: Fri Oct 10 01:33:37 PDT 2025

Total time taken to generate the page: 0.63773 seconds