[WINDOWS] more than 1 instance
#1
hey,...

i have seen that is possible to remove the limitation of 1 instance of xbmc
from the code,...

i need to do that,...

can you indicate the code to modify to make that possible ?...


i have seen that

Code:
// check if XBMC is already running

  CreateMutex(NULL, FALSE, "XBMC Media Center");
    
  if(GetLastError() == ERROR_ALREADY_EXISTS)
  {
    HWND m_hwnd = FindWindow("XBMC","XBMC");
    if(m_hwnd != NULL)
    {
      // switch to the running instance
      ShowWindow(m_hwnd,SW_RESTORE);
     SetForegroundWindow(m_hwnd);
    }
    return 0;
  }

at XBMC_PC.cpp (124)

but not sure

i try but no results at this time,...

thx for your comprehension,...
Reply
#2
Remove those lines and you should be able to start two instances. Make sure that you use XBMC in portable mode in different directories otherwise file access may got corrupted.
Dunno if there could be any other problems.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#3
I tried this a while back and still couldn't get two instances to run. I never bothered looking into why.

JR
Reply
#4
WiSo Wrote:Remove those lines and ...
use XBMC in portable mode

Thx a lot,... Smile

for these informations,....
Reply
#5
...

so i''m able to have now 2 instances of xbmc (one per screen) Smile

rem:

when i start the second instance
i have one error message

Code:
Remote communication server failed to start.

But,

is it possible to control
a specific instance of xbmc with
a remote control harmony,...Huh
Reply
#6
mmh yeah that could be a problem. All services which XBMC will launch (http, airplay, IRRS) connect to or use a specific port. The second instance won't be able to use the same. In order to get in half work you have to change the ports in the settings where possible (some are fixed).
XBMC is designed to run standalone Nod
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#7
WiSo Wrote:you have to change the ports in the settings where possible (some are fixed).

Ok thx,

i will take a look to that,...

...
Reply
#8
alamata Wrote:...
is it possible to control
a specific instance of xbmc with
a remote control harmony,...Huh

...??
Reply
#9
...

to try to resolve this problem,...

i need to be able to modify the class name of one instance of xbmc
and recompile it,...

where can i do that in the source code,...

...

thx for your patience,...
Reply
#10
alamata Wrote:...
i need to be able to modify the class name of one instance of xbmc

actually i dont have find a possibility to do that,...Sad

But

i have bypass the problem Wink

by giving the focus to a specific PID

indeed i get the PID by the Process name
(i have an xbmc.exe and an xbmc-Server.exe)

with the advancedlauncher
i can run .bat file
who provide the focus to the "other "instance of xbmc

so i can use my remote to control separatly 2 differentes instances of xbmc

and

i can use the "mirroring" provide by ultramon to have one instance
of my choice on my tactil in the kitchen and my tv in the linving room

this is a good beginning,... Wink
Reply
#11
I'm new to XBMC and am impressed so far! Very interested in the ability to run two instances with separate inputs but wouldn't mind some help in doing this...where is the file located that I need to change? And how do I do this...

"i have bypass the problem

by giving the focus to a specific PID

indeed i get the PID by the Process name
(i have an xbmc.exe and an xbmc-Server.exe)"

Thanks in advance!
Reply

Logout Mark Read Team Forum Stats Members Help
[WINDOWS] more than 1 instance0