Re: [GD-Windows] Terminating a program
Brought to you by:
vexxed72
From: brian s. <bri...@gm...> - 2005-08-01 17:01:21
|
Like I said, you have plenty of other options for IPC. Named event, create = a=20 pipe, etc. But since his code was already using messages, switching to a=20 custom message seemed it would be fastest for Eero to implement. --brian On 8/1/05, Root, Konstantin <kr...@fu...> wrote: >=20 > Why not just create named event that will be set by terminator program > and checked by your full screen application? >=20 > -----Original Message----- > From: gam...@li... > [mailto:gam...@li...] On Behalf Of > epa...@ko... > Sent: Sunday, July 31, 2005 8:02 PM > To: gam...@li... > Subject: Re: [GD-Windows] Terminating a program >=20 > brian sharon wrote: >=20 > > Sounds like you might be better off not using WM_CLOSE, since the OS > is going to complain if you ignore it for too long. But you have plenty >=20 > of other options if you want to handle communications between two apps > you control. Easiest thing is to use RegisterWindowMessage() to get a > unique message value for your own custom quit message, and then the > child application could post WM_CLOSE to itself whenever it receives > that custom quit message from the launcher app. > > >=20 >=20 > Results from this seem very promising. I did add TerminateProcess as the > fallback, but so far (after doing one fix to the graphical program), I > have not yet seen it triggered. >=20 > (I have previously terminated programs on this setup (Nvidia + > WindowsXP) and I have not noticed any ill effects) >=20 > Thanks for your and Jon's comments >=20 >=20 > Eero >=20 > PS. I first sent this using wrong address, moderator please kill > that message... >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclic= k > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&opclick > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_idU5 > |