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

Home » Public Forums » archive » Re: Control-C and cleanup routine
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: Control-C and cleanup routine [message #11961] Fri, 05 June 1998 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
csaute3@alumni.umbc.edu (csaute3@alumni.umbc.edu) writes:

> I am running IDL 5.0.2 on an HP workstation with HP-UX 11.
> I have created a widget application which reads data into
> shared memory and does statistics and plots of the data.
> If the user types Control-C (interrupts program execution),
> I would like to run a cleanup routine that would get rid
> of any shared memory owned by the user.
>
> Question: How do I tell IDL to run a routine when
> Control-C is typed ?

Presuming you are using LinkImage to implement your
shared memory, you can access the IDL_BailOut() function
to sense or set IDL's internal interrupt character.
See page 152 in the Advanced Development Guide.

Cheers,

David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Lousiest IDL code: my entry
Next Topic: Re: IDL server mode

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

Current Time: Sat Oct 11 10:33:36 PDT 2025

Total time taken to generate the page: 0.48319 seconds