MM.exe fails to set already running MP instance to become the foreground window (1 Viewer)

jenz

New Member
February 27, 2007
9
0
51
Zürich
Switzerland Switzerland
TV-Server Version: -
MediaPortal Version: 1rc4
MediaPortal Skin: Blue3
Windows Version: Vista x64 SP1
CPU Type: E6600
HDD: Samsung F1 1T
Memory: 4G
Motherboard: Asus P5W DH Deluxe
Video Card: ATI 1900 XT
Video Card Driver: Catalyst 8.11
Sound Card: x-Fi Extreme Gamer, Realtek ALC882
Sound Card AC3: -
Sound Card Driver: Creative 2.18.004, Realtek ??
1. TV Card: None
1. TV Card Type: -
1. TV Card Driver: -
2. TV Card: None
2. TV Card Type: -
2. TV Card Driver: -
3. TV Card: None
3. TV Card Type: -
3. TV Card Driver: -
4. TV Card: None
4. TV Card Type: -
4. TV Card Driver: -
MPEG2 Video Codec: MP default
MPEG2 Audio Codec: MP default
h.264 Video Codec: FFMpeg
Satelite/CableTV Provider: CableCom
HTPC Case: -
Cooling: Some fans
Power Supply: BeQuiet Dark Power Pro 530W
Remote: MCE Remote / IR-Server
TV: Elsa CTR 22"
TV - HTPC Connection: D-Sub

Hi,

I have a dual monitor config (LCD with keyboard and for the secondary display a CRT with gamepads in front of a sofa. IR Server /MCE Remote is used to control MP, and by pressing the Windows Start button MP starts on the secondary monitor. MP is never minimised. That part and MP itself works very well.

Now after doing stuff on the primary screen (causing window focus to change) and then starting MediaPortal.exe again while MP is already visible, the already runing MP instance is activated but fails to get the focus. Instead its taskbar button is just blinking.

This is probably caused by not calling allowSetforegroundwindow() in MediaPortalApp.ActivatePreviousInstance() or MediaPortalApp.SetForeGround().

I haven't tested this by building MP itself, but when I use ChangeDisplaySettings.exe (SourceForge.net: ChangeDisplaySettings , build required) to call allowSetForegroundWindow() and execute mp.exe the already running instance of MP is becoming the foreground window instantly.

Cheers, Jenz
 

jenz

New Member
February 27, 2007
9
0
51
Zürich
Switzerland Switzerland
Problem solved

It toook me a time to realize the problem. It's caused by using IR-Server Suite to launch MP. Because IRSS might not have the right to set the foreground window, MP also won't be able to become the foreground window.

Solution: here in this IRSS thread

Cheers, Jens
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

OP Similar threads Forum Replies Date
joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 3
M MovingPictures: Hang at retrieving details (connection fails) ? Moving Pictures 23
Grisu002 Failed to startup - TV Server funktioniert nicht Allgemeines Support- und Diskussionsforum 0
Dark Eyes TVService locks up or fails to restart on resuming from sleep, and crashes when grabbing EPG Installation, configuration support 7
T [solved] failed to-startup tvservice Installation, configuration support 1
B MP 1.23 First time click TV or Recorded TV fails, 2nd ... it will work General Support 5
W Setup data connection - mySQL connection failed Installation, configuration support 1
BrownGhost MP-TVSeries, Failed to save xml to cache, and not adding any info to tvseries from tvdb My TVSeries 4
C Setup failed: 0xfffffff7 Allgemeines Support- und Diskussionsforum 1
G MP1 TV Server "failed to upgrade the database" using MS Sql Server Installation, configuration support 3
B TV tuner fails to initialise Watch / Listen Media 0
P [solved] MP2 fails to install: "Insufficient privileges to start services" General 11
joecrow Online Videos fails after MP 1.23 upgrade. 1.23 Pre Release 37
J DVB-S2 card fails to tune? Subchannel count increasing Television (MyTV frontend and TV-Server) 3
joecrow Scheduled Recordings Failed (MP 1.22) General Support 12
rexdog [solved] MP2 Instal failing on WIN10 General 2
porky996t DVB Sat card possibly failed General Support 1
joecool70 [solved] Installationsprobleme: MP2-Server failed to start Allgemeines Support- und Diskussionsforum 25
Ralph Holmes [solved] MP2 fails to start after re-boot 2.2 Archive 8
Holzi [solved] MediaPortal 2 will not install - Failed to start services MediaPortal 2 1
B [further infos missing] Install failed Exit code: 0xfff7, restarting: No 2.2 Archive 1
S Display driver failed to start, using microsoft basic display driver instead General Support 23
Frans Nijhuis [further infos missing] Deleting all TV channels and all channel groups in "MP 2 TV configuration" fails 2.2 Archive 1
Stéphane Lenclud [fixed] libbluray submodule update fails MediaPortal 1 3
T [solved] Installation failing General 32
Similar threads

























Top Bottom