<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Build/launch error 575]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=809&amp;type=atom" />
	<updated>2021-05-24T11:56:35Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=809</id>
		<entry>
			<title type="html"><![CDATA[Re: Build/launch error 575]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3749#p3749" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2021-05-24T11:56:35Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3749#p3749</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Build/launch error 575]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3748#p3748" />
			<content type="html"><![CDATA[<p>The IDE executable is <em>fwin.exe</em>.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2021-05-23T15:18:31Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3748#p3748</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Build/launch error 575]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3747#p3747" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[tun_day]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3696</uri>
			</author>
			<updated>2021-05-22T16:54:27Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3747#p3747</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Build/launch error 575]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3746#p3746" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2021-05-22T14:03:04Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3746#p3746</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Build/launch error 575]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3745#p3745" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[tun_day]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3696</uri>
			</author>
			<updated>2021-05-21T22:50:59Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3745#p3745</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Build/launch error 575]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3722#p3722" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2021-04-19T11:37:25Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3722#p3722</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Build/launch error 575]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3721#p3721" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[tun_day]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3696</uri>
			</author>
			<updated>2021-04-17T04:05:05Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3721#p3721</id>
		</entry>
</feed>
