Open from file creates second instance

Having trouble installing Oxygen? Got a bug to report? Post it all here.
solarian
Posts: 48
Joined: Thu Mar 12, 2009 10:27 pm

Open from file creates second instance

Post by solarian »

I've noticed that if I have an instance of oXygen already running, and then double-click on an XML file somewhere on my hard drive, a new instance of oXygen is instantiated to open that file, rather than it being opened in the current instance. This can be a little awkward at times, and I for one would prefer to have the new file open as a tab in the current session. It's a minor detail, but all these little things help to streamline one's workflow.

Best wishes and thanks in advance,

Ian
iulian_velea
Posts: 63
Joined: Fri Dec 12, 2003 6:34 pm
Contact:

Re: Open from file creates second instance

Post by iulian_velea »

Hello Ian,

The default behavior of Oxygen is to open all the associated files in the currently running instance.
What is the version of Oxygen you are running?
Maybe you have different version installed side by side and the instance you are running has another version than the one that is associated with the xml files.

Regards,
Iulian
solarian
Posts: 48
Joined: Thu Mar 12, 2009 10:27 pm

Re: Open from file creates second instance

Post by solarian »

I've done a little digging and discovered that when I start oXygen by invoking oxygen.exe then it works as you describe, but when I start oXygen from a project file (.xpr) -- which I do normally -- then any double-clicked files get opened in a second instance. Is this intentional?

BTW, I'm using v11.
honyk
Posts: 176
Joined: Wed Apr 29, 2009 4:55 pm

Re: Open from file creates second instance

Post by honyk »

Here is another relative thread:
http://www.oxygenxml.com/forum/topic4151.html

We have the same issue on one of several PC. We have tried almost everything but still without success. File from Windows explorer have to be dragged & dropped into Oxygen environment or opened via dialog to be opened in the same instance.
solarian
Posts: 48
Joined: Thu Mar 12, 2009 10:27 pm

Re: Open from file creates second instance

Post by solarian »

Does that still happen if you run oXygen directly from the oxygen.exe file? It only happens to me when I run it from an .xpr file (which I have as a shortcut on my Desktop).
solarian
Posts: 48
Joined: Thu Mar 12, 2009 10:27 pm

Re: Open from file creates second instance

Post by solarian »

Actually, I think these may be two separate issues.

Using Sysinternals Tcpview, I can see that when I open oXygen from an .xpr file it doesn't bind to any port, but if I run it from the .exe file it binds to port 30008.

When I run it from an .xpr file and open a file, causing a second instance to run, then the second instance binds to port 30008.

I tried to fix it by modifying my shortcut to the .xpr file by running it as a command line parameter for oxygen.bat (%1), but this didn't seem to help.
iulian_velea
Posts: 63
Joined: Fri Dec 12, 2003 6:34 pm
Contact:

Re: Open from file creates second instance

Post by iulian_velea »

Hi,

The double-clicked ".xpr" files from the file explorer are opened indeed in a separate Oxygen instance. Starting a new instance for each project file was a user requested behavior introduced in a previous version and it is intentional.
We already have an entry on our issue tracker about this situation requesting to be reanalyzed.
We will let you know about the final result.

Thank you,
Iulian.
Post Reply