nanogui: signal() in winmain.c
Subject:
Re: signal() in winmain.c
From:
Jordan Crouse ####@####.####
Date:
5 Mar 2001 19:10:34 -0000
Message-Id: <3AA3E5E2.26DDF9E6@censoft.com>
That is exactly how you should do it. I would suggest, however, that
you use some sort of signal handling so that you can recover
gracefully from a error or a user interrupt, especially if you have some
allocated memory. Otherwise you will leave a ton of useless allocated
memory around everything there is an error. Of course, this is your
call, depending on your system and/or your prefrence.
Jordan
Steven Stadnicki wrote:
>
> I'm trying to build the latest version of Microwindows/Nano-X
> for our standalone environment (for our own media processors)
> and running into problems with the new winmain.c. It includes
> signal.h to catch the terminate signal, but this isn't available to us
> and seems like it wouldn't be available in many non-Unix-based
> builds of Mwin. Should the signal() call in MwInitialize be moved
> into the #if (UNIX || ...) block above it, and the #include of signal.h
> be predicated in the same way, or is there a better approach to this?
>
> Steven Stadnicki
> ####@####.####
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####