<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>Perhaps my subject is not quite the correct question. Here's my context:<br><br></div>I'm beginning to recreate in Erlang on Microsoft Windows 10 a public domain program I used to enjoy on my Commodore Amiga: mATC was a game in which the user acted as a military Air Traffic Controller. I am using a wx window to draw the player's map with aircraft data blocks overlaid. I don't have a use for the initial window that opens when werl is started.<br><br><a href="http://erlang.org/doc/man/werl.html">http://erlang.org/doc/man/werl.html</a><br><br></div>says, in part, "All flags
except <span class="">-oldshell</span> work as they do for
the <span class=""><a href="http://erlang.org/doc/man/erl.html">erl</a></span> command." I don't have a UNIX-y system available to me to learn how they work for the erl command. (The erl command as an interactive program is iffy in a Windows Command Prompt window.)<br><br></div>In particular, the description of -detached in<br><br><a href="http://erlang.org/doc/man/erl.html">http://erlang.org/doc/man/erl.html</a><br><br></div>would seem to be what I want:<br><br>"Starts the Erlang runtime system detached from the system
console. Useful for running daemons and backgrounds processes. Implies
<span class="">-noinput</span>."<br><br></div>I want the Erlang VM to run my game without an Erlang shell's having opened a window, and I want my game to be in control of its wx window.<br><br></div>Further, following what I think I learned from "Erlang and OTP in Action", I have an OTP application being started by a boot file created from a .rel file. All of this is in the setting of an ancient Erlang release: R15B.<br><br></div>If I use this Command Prompt batch file, mATC.bat:<br><br></div>werl -pa ebin -pa mATC_app\ebin -detached -boot mATC -config sys<br><br></div>a Windows error message window appears that says:<br><br></div>"Failed to execute C:\Program Files\erl5.9\erts5.9\bin\beam.smp.dll<br></div> The system cannot find the file specified."<br><br></div>The DLL is actually present at that location, and of course everything runs well when I don't use -detached.<br><div><div><div><div><div><div><div><div><div><br></div><div>Please advise.<br><br></div><div>Regards,<br></div><div>John Ashmun<br><br>
</div></div></div></div></div></div></div></div></div></div>