home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
How to find out if the skin engine is ready?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Lightning303" data-source="post: 1118537" data-attributes="member: 97876"><p>I dont have an idle loop.</p><p>All i want is to check if MP has finished loading when i try to open a dialog, so MP wont crash/freeze.</p><p></p><p>Something like this:</p><p></p><p>[code]private void MyMethod()</p><p>{</p><p> // Check if MP is ready</p><p></p><p> GUIDialogOK myDialog = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK);</p><p> ...</p><p> ...</p><p>}[/code]</p><p></p><p>So i now tried this:</p><p>[code]private void MyMethod()</p><p>{</p><p> </p><p> Process myProcess = Process.GetCurrentProcess();</p><p> myProcess.Refresh();</p><p> myProcess.WaitForInputIdle();</p><p></p><p> GUIDialogOK myDialog = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK);</p><p> ...</p><p> ...</p><p>}[/code]</p><p></p><p>And that throws the exception i quoted above.</p></blockquote><p></p>
[QUOTE="Lightning303, post: 1118537, member: 97876"] I dont have an idle loop. All i want is to check if MP has finished loading when i try to open a dialog, so MP wont crash/freeze. Something like this: [code]private void MyMethod() { // Check if MP is ready GUIDialogOK myDialog = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); ... ... }[/code] So i now tried this: [code]private void MyMethod() { Process myProcess = Process.GetCurrentProcess(); myProcess.Refresh(); myProcess.WaitForInputIdle(); GUIDialogOK myDialog = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); ... ... }[/code] And that throws the exception i quoted above. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
How to find out if the skin engine is ready?
Contact us
RSS
Top
Bottom