<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Build/launch error 575]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=809</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=809&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Build/launch error 575.]]></description>
		<lastBuildDate>Mon, 24 May 2021 11:56:35 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Build/launch error 575]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3749#p3749</link>
			<description><![CDATA[<p>I mentioned another user was having this issue with Windows Defender, and he provided the project and source code to help with the bug.&nbsp; The surprising source of the issue seems to be a safety timeout we&#039;ve implemented to ensure the application actually starts via <em>CreateProcess</em>.&nbsp; Simply Fortran has a safety measure to make sure the process is actually created, not necessarily doing anything, within 3 seconds.&nbsp; It appears that, under the right circumstances, this amount of time is insufficient.&nbsp; I believe it is a combination of processor power, disk speed, and the virus scanner itself.&nbsp; Regardless, either disabling the timeout or lengthening it by an order of magnitude seems to resolve the issue.&nbsp; </p><p>Right now I&#039;m adding some features to Simply Fortran to fix the problem.&nbsp; The way Simply Fortran launches a process (by assuming creating a process is fast), seems extremely problematic in some cases.&nbsp; I&#039;ll provide a pre-release build when the issue is resolved.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Mon, 24 May 2021 11:56:35 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3749#p3749</guid>
		</item>
		<item>
			<title><![CDATA[Re: Build/launch error 575]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3748#p3748</link>
			<description><![CDATA[<p>The IDE executable is <em>fwin.exe</em>.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Sun, 23 May 2021 15:18:31 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3748#p3748</guid>
		</item>
		<item>
			<title><![CDATA[Re: Build/launch error 575]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3747#p3747</link>
			<description><![CDATA[<p>Thanks Jeff,<br />Based on your comments, I believe the virus scanner is the problem. I will bug Mcafee again to look into the problem. In the meantime, what&#039;s the name of the SF IDE to whitelist?</p>]]></description>
			<author><![CDATA[null@example.com (tun_day)]]></author>
			<pubDate>Sat, 22 May 2021 16:54:27 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3747#p3747</guid>
		</item>
		<item>
			<title><![CDATA[Re: Build/launch error 575]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3746#p3746</link>
			<description><![CDATA[<p>This error code can also be caused by DLLs missing from the path.&nbsp; You can also make sure you&#039;re using static linking in Project Options to avoid this.</p><p>However, I should explain that Simply Fortran is using the Windows API call &quot;<a href="https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessa">CreateProcess</a>&quot; to launch your executable.&nbsp; It attempts to do so in the specified working directory, and will do so in the project directory if the working directory is blank.&nbsp; When <em>CreateProcess</em> returns false, the error code is reported to users, nothing more.&nbsp; Simply Fortran isn&#039;t taking any other steps.&nbsp; You might need to whilelist the Simply Fortran IDE as well in your virus scanner to allow it to arbitrarily access <em>CreateProcess</em>.</p><p>I&#039;ll continue to look, but I can&#039;t replicate this behavior on our Windows test systems.&nbsp; Another user has reported similar issues when using Windows Defender as opposed to McAfee.&nbsp; The McAfee virus product, though, has always been a problem for Simply Fortran users.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Sat, 22 May 2021 14:03:04 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3746#p3746</guid>
		</item>
		<item>
			<title><![CDATA[Re: Build/launch error 575]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3745#p3745</link>
			<description><![CDATA[<p>Hi Jeff, <br />I don&#039;t think it&#039;s a virus scan problem for the following reasons.<br />&nbsp; &nbsp;1. Both build and launch problems occur when target.exe is &quot;whitelisted&quot;.<br />&nbsp; &nbsp;2. Both build and launch problems occur when the virus scan firewall is turned off.<br />&nbsp; &nbsp;3. I have been using SF for a couple of years and the problem just started coming up only lately. I haven&#039;t changed my virus&nbsp; &nbsp; &nbsp; &nbsp; scanner, McAfee.<br />&nbsp; &nbsp;4. Neither the error during build or upon launch happens every time. See below for success and fail patterns.</p><p>Patterns<br />&nbsp; &nbsp;1. Build always succeeds if it&#039;s the first thing I do upon launching SF. That is before any source file editing.<br />&nbsp; &nbsp;2. Build always fails otherwise. Hence my strategy is to complete any needed source file editing, close SF, re-open SF, and&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;then run the build only. Always works.<br />&nbsp; &nbsp;3. Target.exe always runs successfully if copied or moved out of the IDE and launched like from, say, the desktop. Or run&nbsp; &nbsp; &nbsp; &nbsp;from a desktop shortcut to it.<br />&nbsp; &nbsp;4. Target.exe seems to always run successfully after a clear of the console. I&#039;m not really sure of the always part, but a&nbsp; &nbsp; &nbsp; &nbsp;high percentage of the time.<br />&nbsp; &nbsp;5. Target.exe eventually runs in SF after several fails.</p>]]></description>
			<author><![CDATA[null@example.com (tun_day)]]></author>
			<pubDate>Fri, 21 May 2021 22:50:59 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3745#p3745</guid>
		</item>
		<item>
			<title><![CDATA[Re: Build/launch error 575]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3722#p3722</link>
			<description><![CDATA[<p><a href="https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--500-999-">Error 575 means:</a></p><div class="codebox"><pre><code>ERROR_APP_INIT_FAILURE

    575 (0x23F)

    {Application Error} The application was unable to start correctly (0x%lx). Click OK to close the application.</code></pre></div><p>The application is not initializing.&nbsp; This error is usually caused by the virus scanner, though not necessarily.&nbsp; Can you start your program, which is <em>target.exe</em> by default, from Windows Explorer every time?</p><p>The Mcaffee virus scanning product, especially the consumer version, seems exceptionally hostile towards executables produced by compilers on your local machine.&nbsp; I assume you can &quot;turn off&quot; Mcaffee on your machine temporarily.&nbsp; If you simply disable the virus scanner for a short time, does everything work as expected? </p><p>I personally just use Microsoft&#039;s virus protection that comes free with Windows.&nbsp; I don&#039;t have any insight into why Mcaffee wouldn&#039;t work.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Mon, 19 Apr 2021 11:37:25 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3722#p3722</guid>
		</item>
		<item>
			<title><![CDATA[Build/launch error 575]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3721#p3721</link>
			<description><![CDATA[<p>I&#039;m not sure this is a new topic, but I&#039;m having sporadic problems with build or launch of my exe. First, my first attempt to run my exe&nbsp; after launch of SF gives me this error message, &quot;Error launching&quot;, but it seems to build. If I launch my exe right after without a recompilation (no changes to any source file), it runs successfully. If I then make any change(s) to my source and then try to launch, I get the error message, &quot;Process failed to start with error code 575. Contact support@approximatrix.com&quot;. I also get the error message, &quot;cannot open output file target.exe: Permission denied&quot;. Mcaffee has worked with me unsuccessfully to exclude target.exe from virus scanning.</p>]]></description>
			<author><![CDATA[null@example.com (tun_day)]]></author>
			<pubDate>Sat, 17 Apr 2021 04:05:05 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3721#p3721</guid>
		</item>
	</channel>
</rss>
