The syptom :
MediaPortal main window doesn't show anything other than window borders and main menu strip. There is no GUI. In Windows XP the GUI part doesn't draw at all (just shows what was under the current window position at startup), in Windows Vista the GUI part appears white...
The prognosis :
After installing SVN and looking the source code, I wasn't able to find anything at first. Then I checked the Log directory for any leads and saw this :
notice the red text (you may have to scroll the code block to the right) that was supposed to be lower case "i" (in Turkish we have upper case "i" as "I" with a dot over it, and lower case "I" looks like "i" without a dot over it) but that crypted text is (I'm guessing that's because the log file is ANSI encoded instead of UNICODE) supposed to be lower case "I" as in Turkish characters...
Then I checked the sourcecode for the use of .ToLower() method.
The solution :
I replaced all .ToLower() methods with .ToLowerInvariant() and that was it.
Suggestion : I know you will find out a better solution for this...
In my opinion it should be better to use case sensitive filenames (as in C# syntax )
or
first try to find the filename as it is (case sensitive) and if no file is found try to find the filename with .ToLowerInvariant() and if still not found try to find with .ToLower() (as the current thread's cultureInfo -Regional Settings)...
The bug exists in latest stable (0.2.2.0), latest release candidate (0.2.3.0 RC2) and also the nightly builds...
As I can finally see the GUI and able to use the program, I must say THANK YOU for your great efforts in such a great and also free product !!!!
MediaPortal main window doesn't show anything other than window borders and main menu strip. There is no GUI. In Windows XP the GUI part doesn't draw at all (just shows what was under the current window position at startup), in Windows Vista the GUI part appears white...
The prognosis :
After installing SVN and looking the source code, I wasn't able to find anything at first. Then I checked the Log directory for any leads and saw this :
Code:
2007-09-21 13:04:47.034035 [ERROR][MPMain]: D3D: InitializeDeviceObjects - Exception: System.IO.FileNotFoundException: d:\mediaportal\xbmc\bin\debug\skin\bluetwo\media\newmail[COLOR="Red"]ı[/COLOR]con.png
at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
at System.Drawing.Image.FromFile(String filename)
at MediaPortal.GUI.Library.TexturePacker.AddBitmap(PackedTextureNode root, Image rootImage, String file, Boolean& dontAdd) in D:\MediaPortal\Core\guilib\TexturePacker.cs:line 420
at MediaPortal.GUI.Library.TexturePacker.PackSkinGraphics(String skinName) in D:\MediaPortal\Core\guilib\TexturePacker.cs:line 336
at MediaPortal.GUI.Library.GUITextureManager.Init() in D:\MediaPortal\Core\guilib\GUITextureManager.cs:line 726
at MediaPortalApp.InitializeDeviceObjects() in D:\MediaPortal\xbmc\MediaPortal.cs:line 1541
at MediaPortal.D3DApp.InitializeEnvironment() in D:\MediaPortal\xbmc\d3dapp.cs:line 1001
Then I checked the sourcecode for the use of .ToLower() method.
The solution :
I replaced all .ToLower() methods with .ToLowerInvariant() and that was it.
Suggestion : I know you will find out a better solution for this...
In my opinion it should be better to use case sensitive filenames (as in C# syntax )
or
first try to find the filename as it is (case sensitive) and if no file is found try to find the filename with .ToLowerInvariant() and if still not found try to find with .ToLower() (as the current thread's cultureInfo -Regional Settings)...
The bug exists in latest stable (0.2.2.0), latest release candidate (0.2.3.0 RC2) and also the nightly builds...
As I can finally see the GUI and able to use the program, I must say THANK YOU for your great efforts in such a great and also free product !!!!