- September 1, 2008
- 21,577
- 8,224
- Home Country
- New Zealand
Can you attach your test code?After many try, until we are not able to retrieve list of GPU card after a recovery from Windows, it's even no need to try to fix the rendertarget or swapchain etc
I'd like to have a look and maybe have a try.
Well, as you know MediaPortalApp/D3D is the render target, so I'm not surprised. This is why I have continued to say that the render target needs to be disposed.The only way that i have quite succeeded was about to start new mediaportalApp inside already started one but after it doesn't work well.
I think mostly that the main() function needs to be refactored so that the MediaPortalApp instance ("app") can be disposed and recreated after GPU crash. I'm talking about this part:
https://github.com/MediaPortal/Medi...iaPortal.Application/MediaPortal.cs#L978-L994
Code:
var app = new MediaPortalApp();
if (app.Init())
{
try
{
Log.Info("Main: Running");
GUIGraphicsContext.BlankScreen = false;
Application.Run(app);
app.Focus();
}
catch (Exception ex)
{
Log.Error(ex);
Log.Error("MediaPortal stopped due to an exception {0} {1} {2}", ex.Message, ex.Source, ex.StackTrace);
_mpCrashed = true;
}
app.OnExit();
}