<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>I'm running an old version of Erlang for the usual reasons:  everything I've tried with it works fine & I have no experience upgrading Erlang installations, but lots of experience with other upgrade attempts that were disastrous.</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">I have R16B01 on a laptop that I use to hold backup copies of my projects (& occasionally to determine whether what I write works on a different version of Erlang).  I will try using -detached there & then upgrade it to R18 or whatever the latest stable release is & try it again using that version.</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">BTW, the wx demo is going to help my guesswork with wx a lot.<br><br>Sent from my iPhone</div><div><br>On May 25, 2016, at 1:22 PM, Dan Gudmundsson <<a href="mailto:dangud@gmail.com">dangud@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hmm,<div>It works fine for me on Windows 10 from msys2 with erlang in the path <div>and from cmd shell without erlang in the path:<div><br></div><div><div>C:\Users\familjen>"c:\Program Files (x86)\erl7.3\bin\werl" -run wx demo</div><div><br></div><div>C:\Users\familjen>"c:\Program Files (x86)\erl7.3\bin\werl" -detached -run wx demo</div><div><br></div><div>Oh noticed the version you are running...</div><div><br></div><div>It also works for me with 17.0 i.e. erl-6.0 which is the oldest I have installed here at home.</div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">Why are you using an old version of erlang?</span><br></div></div></div></div><div><span style="line-height:1.5">Can you try a newer version and see if that works?</span><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, May 25, 2016 at 9:49 PM John Ashmun <<a href="mailto:john.ashmun@gmail.com">john.ashmun@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>I just found time to try what you suggested with the wx demo, but I got the same pop up Windows error message as when I try to run my release with -detached.</div><div><br></div><div>I added ...\erts-5.9\bin to %Path% and tried again but it failed again with the same error message.<br><br>Sent from my iPhone</div></div><div dir="auto"><div><br>On May 18, 2016, at 12:02 AM, Dan Gudmundsson <<a href="mailto:dangud@gmail.com" target="_blank">dangud@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div>At least this works as it should:</div><div><br></div>werl -detached -run wx demo <div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, May 18, 2016 at 3:48 AM John R. Ashmun <<a href="mailto:john.ashmun@gmail.com" target="_blank">john.ashmun@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 17, 2016 at 6:32 PM, zxq9 <span dir="ltr"><<a href="mailto:zxq9@zxq9.com" target="_blank">zxq9@zxq9.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Tuesday 17 May 2016 16:47:35 John R. Ashmun wrote:<br>
> Perhaps my subject is not quite the correct question.  Here's my context:<br>
><br>
> I'm beginning to recreate in Erlang on Microsoft Windows 10 a public domain<br>
> program I used to enjoy on my Commodore Amiga:  mATC was a game in which<br>
> the user acted as a military Air Traffic Controller.  I am using a wx<br>
> window to draw the player's map with aircraft data blocks overlaid.  I<br>
> don't have a use for the initial window that opens when werl is started.<br>
<br>
</span>Awesome!<br>
<span><br>
> If I use this Command Prompt batch file, mATC.bat:<br>
><br>
> werl -pa ebin -pa mATC_app\ebin -detached -boot mATC -config sys<br>
><br>
> a Windows error message window appears that says:<br>
><br>
> "Failed to execute C:\Program Files\erl5.9\erts5.9\bin\beam.smp.dll<br>
>  The system cannot find the file specified."<br>
><br>
> The DLL is actually present at that location, and of course everything runs<br>
> well when I don't use -detached.<br>
<br>
</span>Hrm... that seems odd, but I have to admit I have no experience running<br>
actual releases on Windows. What I usually do instead is have the runtime<br>
installed on the Windows machine, unpack project code and kick things off<br>
with an escript that builds and then launches the code I want to run.<br>
<br>
Changing from releases to from-source build->run may require a bit of<br>
shuffling -- and may or may not be worth it depending on the project.<br>
But this has been very effective and lightweight for my purposes.<br>
<br>
Like everything else on Windows there are a few quirks to making escripts<br>
a click-to-run experience (specifying full path to "escript.exe" instead<br>
of "escript" in your launcher, space for unheeded shebang, etc.). I've<br>
wanted for a few years now to formalize and simplify a solution to this...<br>
but real life gets in the way of the things I wish I could do as community<br>
project work. :-(<br>
<br>
The escript-to-bootstrap approach has made my Erlang GUI experience on<br>
Windows fairly painless -- I can develop on Linux or BSD and almost always<br>
get away with relying on anything that works there (to include wx) working<br>
pretty much the same way on Windows.<br>
<br>
I have not tried this on Windows 10 yet, but I assume it will continue to<br>
work the same way it does on Windows 7 and 8.1.<br>
<br>
-Craig<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div></div><div dir="ltr"><div class="gmail_extra">I will look into escript, thanks.<br><br></div></div><div dir="ltr"><div class="gmail_extra">John<br></div></div>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>
</div></blockquote></div></blockquote></div>
</div></blockquote></body></html>