Unable to launch application 'xxx?application name?' on port ????

Use the RealStudio 2012 r2.1 I’m developing a web application.

Server is the following specs.
Mac mini,OS X Yosemite,10.10.3.

Usually works without a problem web application works well,
Sometimes, it will not start come out the following message.

Unable to launch application ‘xxx?application name?’ on port ???

Since the application will not start it’s in trouble.
Please tell me if there is a way to solve this problem.

If port < 1024 you will have a problem. If port is in use by another app you will have a problem.

In Compile Option, I Check 'Choose Port Automatically’…
for example… port number is 62703, 2212, 40433, and so on.
Port number is larger than 1024.

There are several possibilities. Since you’re using automatic ports, I’m going to assume that your app is running as CGI…

  1. The previous app is still running. Sometimes (even in debug mode) an app will get into a state where it can’t quit. Go to the activity monitor and do a search for your app’s name.
  2. If your app is crashing (or you are forcing it to quit), it’s likely that the mutex file is not getting removed properly. The mutex makes sure that only one instance of your app is running at any given time, but when an app crashes it usually does not get deleted. When you try to launch a second time you get an error. Use Terminal to look in /tmp for files whose name matches your app’s application identifier.
  3. The CGI script checks five random ports before giving up. If the five it checks are already in use, you’ll get this error.
  4. The OS X firewall may be preventing incoming connections.

That’s just a selection. If you continue to have problems, please write back.

Thank you Wayne, Youichi & Greg for your prompt replies.
I’m using a standalone App, running on a Mac with port >8080 and not in use but my firewall was indeed blocking the connection.
Should have thought of that myself.

I was looking at the Blog entry;

http://www.xojo.com/blog/en/2013/09/secure-web-app-login-screens.php

and am wondering if this is still the way to go, as I would like to keep speed by not using CGI or SSL for the entire App.
If it is not, maybe it might be possible to get an update on how to go from standalone to more secure,
possibly even taking load balancing into account? Or does Xojo cloud now offer load balancing options? (although I still don’t like the lower speed of CGI compared to Standalone)

Thank you Greg for your response.

The previous app is still running. Sometimes (even in debug mode) an app will get into a state where it can’t quit. Go to the activity > monitor and do a search for your app’s name.

Yes, in activity monitor there is a app’s name.
When I kill app in activity monitor, the app will be able to start.

Why is app can not quit?
In Session.UnhandledException, I write as below.
Is this wrong?

[code]If error <> Nil Then
Dim type As String = Introspection.GetType(error).Name
MsgBox(type + EndOfLine + EndOfLine + Join(error.Stack, EndOfLine) )
End If

self.Quit[/code]

An app not being able to quit is not because of an exception. Standalone apps continue to run until you explicitly call Quit, unless you’re debugging of course.