Open file in the same instance of Author

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
honyk
Posts: 168
Joined: Wed Apr 29, 2009 4:55 pm

Open file in the same instance of Author

Post by honyk » Thu Aug 27, 2009 11:58 am

Hello,

xml files are associated with Oxygen Author so when they are double clicked in Windows explorer, they are opened in Author. While to almost all users new document is opened in running instance, there is one PC with Vista 32bit, where each document is opened in separate instance. Now it is workarounded using drag & drop to Windows taskbar or opening via File menu. I have no idea why this one behaves differently. It uses the same version, 10.3, downloaded and installed just yesterday. Could be there something wrong during installation? What settings should we check?

Thanks in advance.

Jan

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Open file in the same instance of Author

Post by sorin_ristache » Thu Aug 27, 2009 12:12 pm

Hello,

Is a firewall or antivirus application blocking local connections of the applications running on that computer? If yes you have to allow connections to local ports for the Author application. The second instance of Author tries to see if there is a first instance already running by checking a local port and pass the file to that first instance for opening. If the second instance cannot connect to the local port it assumes there is no instance already running so the Author application is started for opening that file.


Regards,
Sorin

honyk
Posts: 168
Joined: Wed Apr 29, 2009 4:55 pm

Re: Open file in the same instance of Author

Post by honyk » Thu Aug 27, 2009 3:54 pm

Thanks for explanation. We have tried to switch Windows Defender off (our Antivirus has not blocking mechanisms), but issue still persist. Is there something other what can prevent opening port for Oxygen? Alternatively, is there any diagnostic utility for detection of ports state?

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Open file in the same instance of Author

Post by sorin_ristache » Thu Aug 27, 2009 4:06 pm

If an Author instance is already running please check if it occupied one of the ports 30008 and 31011. Is any application blocking the connection that the second instance tries to create to this port?


Regards,
Sorin

honyk
Posts: 168
Joined: Wed Apr 29, 2009 4:55 pm

Re: Open file in the same instance of Author

Post by honyk » Thu Aug 27, 2009 4:28 pm

I've tested ports using MS utility PortQry. If Author is running, it occupies port 30009. If another file is opened, no new port is created, but this file is opened in another instance. If Author is closed, port is released. So I think there is no problem to occupy port, but to communicate with it later.
On other computers the port number and behaviour is the same, but opening of other files is in the same instance. Strange.

Jan

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Open file in the same instance of Author

Post by sorin_ristache » Thu Aug 27, 2009 4:52 pm

honyk wrote:If another file is opened, no new port is created, but this file is opened in another instance.
That is impossible. If the second instance does not find the first instance by connecting to a port allocated to the first instance it tries to bind to the same port as it tried to connect or to another port if it cannot bind to the first one. If it cannot bind to any port it displays an error message and exits.

Please check again the ports allocated to applications on that computer. A failure to connect to the port of the first instance occurs only if other application forbids that connection. Usually that is a firewall or antivirus application.


Regards,
Sorin

Post Reply