Page 1 of 1

Open file in the same instance of Author

Posted: Thu Aug 27, 2009 11:58 am
by honyk
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

Re: Open file in the same instance of Author

Posted: Thu Aug 27, 2009 12:12 pm
by sorin_ristache
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

Re: Open file in the same instance of Author

Posted: Thu Aug 27, 2009 3:54 pm
by honyk
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?

Re: Open file in the same instance of Author

Posted: Thu Aug 27, 2009 4:06 pm
by sorin_ristache
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

Re: Open file in the same instance of Author

Posted: Thu Aug 27, 2009 4:28 pm
by honyk
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

Re: Open file in the same instance of Author

Posted: Thu Aug 27, 2009 4:52 pm
by sorin_ristache
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