<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Close Current File doesn't Kill exe]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=285</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=285&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Close Current File doesn't Kill exe.]]></description>
		<lastBuildDate>Tue, 10 Dec 2013 15:11:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Close Current File doesn't Kill exe]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1173#p1173</link>
			<description><![CDATA[<p>I&#039;ve come up with some improvements that should satisfy everyone.&nbsp; I don&#039;t really think the warning dialogs or assumed behavior is the correct way to handle things.&nbsp; Instead, the new version will change the Run toolbar button to a Terminate button once the project&#039;s executable starts.&nbsp; </p><p><span class="postimg"><img src="http://i.imgur.com/sN86x0B.png" alt="http://i.imgur.com/sN86x0B.png" /></span></p><p>Additionally, the button provides a dropdown for a few more options, namely launching using an external console and reopening the console when the program starts.</p><p><span class="postimg"><img src="http://i.imgur.com/G7qemoF.png" alt="http://i.imgur.com/G7qemoF.png" /></span></p><p>If people have some further suggestions, please let me know.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Tue, 10 Dec 2013 15:11:40 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1173#p1173</guid>
		</item>
		<item>
			<title><![CDATA[Re: Close Current File doesn't Kill exe]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1165#p1165</link>
			<description><![CDATA[<p>I don&#039;t really agree with this suggestion.</p><p>It would be much easier just to disable the close button on the console window while the user&#039;s program is running.</p><p>- This way programs that don&#039;t use the console are not affected at all.<br />- Programs that use the console can only be stopped using the stop button and cannot lose their output by a user&#039;s mistake.</p><p>You can probably setup an interrupt on the close button, then just return if the user&#039;s program is still running, and action the close if it isn&#039;t.</p>]]></description>
			<author><![CDATA[null@example.com (davidb)]]></author>
			<pubDate>Mon, 09 Dec 2013 09:41:07 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1165#p1165</guid>
		</item>
		<item>
			<title><![CDATA[Re: Close Current File doesn't Kill exe]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1164#p1164</link>
			<description><![CDATA[<p>John,</p><p>That&#039;s along the lines of what I was thinking.&nbsp; However, it might be tricky to detect if the program itself opened a window.&nbsp; Not impossible, though, just tricky.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Sun, 08 Dec 2013 22:46:20 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1164#p1164</guid>
		</item>
		<item>
			<title><![CDATA[Re: Close Current File doesn't Kill exe]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1159#p1159</link>
			<description><![CDATA[<p>Jeff, is it possible for SF to test whether the user&#039;s executable is using a program window?<br />If so then here&#039;s a further suggestion: </p><p>IF (The executable has opened a Window) THEN<br />&nbsp; &nbsp; &nbsp;!the user still has control of the program window, so<br />&nbsp; &nbsp; &nbsp;Just do as the user asks and close the console tab<br />ELSE<br />&nbsp; &nbsp; &nbsp;!with no Window open<br />&nbsp; &nbsp; &nbsp;Issue a warning, with options for the executable:<br />&nbsp; &nbsp; &nbsp;- Leave still running as a background process<br />&nbsp; &nbsp; &nbsp;- Exit and close<br />END IF</p><p>--- <br />John</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Sun, 08 Dec 2013 20:47:27 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1159#p1159</guid>
		</item>
		<item>
			<title><![CDATA[Re: Close Current File doesn't Kill exe]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1157#p1157</link>
			<description><![CDATA[<p>Frank,</p><p>I think what I&#039;ll do is provide a warning when you attempt to close the console when a child process is running.&nbsp; That way it doesn&#039;t just close by mistake.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Sun, 08 Dec 2013 15:41:42 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1157#p1157</guid>
		</item>
		<item>
			<title><![CDATA[Re: Close Current File doesn't Kill exe]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1141#p1141</link>
			<description><![CDATA[<p>Frank,</p><p>I think I agree with your proposal, although I have to think about it.&nbsp; In the meantime, you can always select &quot;Open Console&quot; from the View menu.&nbsp; It should give you the ability to kill your program after reopening.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 06 Dec 2013 18:58:29 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1141#p1141</guid>
		</item>
		<item>
			<title><![CDATA[Close Current File doesn't Kill exe]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1136#p1136</link>
			<description><![CDATA[<p>Jeff,</p><p>I have a suggestion for consideration.</p><p>When running a program x.exe in SF v2.7 and displaying output in the console, I have sometimes inadvertently hit the &quot;Close Current File&quot; button instead of the &quot;Kill&quot; button to stop the x.exe program.&nbsp; The result is that the Console tab closes but the program x.exe remains running &quot;invisibly&quot; in the background.&nbsp; It takes a Ctrl-Alt-Del to remove it from running. Rebuilding the program also doesn&#039;t resolve the problem since SF won&#039;t rebuild when x.exe is running.</p><p>Would it be possible to revise the &quot;close current file&quot; button such that it will also &quot;Kill&quot; a running exe in the background?</p><p>Thanks,</p><p>Frank</p>]]></description>
			<author><![CDATA[null@example.com (drfrank)]]></author>
			<pubDate>Fri, 06 Dec 2013 14:59:35 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1136#p1136</guid>
		</item>
	</channel>
</rss>
