<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Close Current File doesn't Kill exe]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=285&amp;type=atom" />
	<updated>2013-12-10T15:11:40Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=285</id>
		<entry>
			<title type="html"><![CDATA[Re: Close Current File doesn't Kill exe]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1173#p1173" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-12-10T15:11:40Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1173#p1173</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Close Current File doesn't Kill exe]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1165#p1165" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[davidb]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3463</uri>
			</author>
			<updated>2013-12-09T09:41:07Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1165#p1165</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Close Current File doesn't Kill exe]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1164#p1164" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-12-08T22:46:20Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1164#p1164</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Close Current File doesn't Kill exe]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1159#p1159" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2013-12-08T20:47:27Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1159#p1159</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Close Current File doesn't Kill exe]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1157#p1157" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-12-08T15:41:42Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1157#p1157</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Close Current File doesn't Kill exe]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1141#p1141" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-12-06T18:58:29Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1141#p1141</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Close Current File doesn't Kill exe]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1136#p1136" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[drfrank]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=223</uri>
			</author>
			<updated>2013-12-06T14:59:35Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1136#p1136</id>
		</entry>
</feed>
