[plt-scheme] Run a function when pressing start in drscheme
Can you wrap your program in a call to dynamic-wind, which clears up
the subprocess whenever your main function exits?
N.
On Sun, May 4, 2008 at 11:25 AM, Filipe Cabecinhas <filcab at gmail.com> wrote:
>
> I'm working on a program that, when it starts, has to open a connection to
> another program. When opening the connection, one instance of the other
> program is started (even if there is already another instance running. I
> can't change this). The other program has to load about 100MB to memory so I
> don't want it just hanging there and having to go to the task manager to
> close it.
>
> So I wanted to register a function to be run whenever the scheme exited, so
> I could close the program.
>
>
> Thanks for the help
>
> - Filipe Cabecinhas