Page 1 of 1

Open from file creates second instance

Posted: Fri Dec 11, 2009 4:20 pm
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

Re: Open from file creates second instance

Posted: Fri Dec 11, 2009 4:46 pm
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

Re: Open from file creates second instance

Posted: Fri Dec 11, 2009 9:38 pm
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.

Re: Open from file creates second instance

Posted: Fri Dec 11, 2009 9:50 pm
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.

Re: Open from file creates second instance

Posted: Fri Dec 11, 2009 10:44 pm
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).

Re: Open from file creates second instance

Posted: Fri Dec 11, 2009 11:04 pm
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.

Re: Open from file creates second instance

Posted: Mon Dec 14, 2009 11:51 am
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.