Home »
Public Forums »
archive »
Re: Control-C and cleanup routine
Re: Control-C and cleanup routine [message #11961] |
Fri, 05 June 1998 00:00 |
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/
|
|
|
Current Time: Fri Oct 10 22:32:40 PDT 2025
Total time taken to generate the page: 0.15950 seconds