Hi, I tried the second application.cc you attached, and this time the exception "Application class can only be instantiated once" is not triggered. The threading issue remains, though. The debug trace looks pretty much the same.
Then, I fired up Anjuta and added debug messages in various parts of the source code. So far, I narrowed the problem down to line 97 in main_window.cc ( engine = new XineEngine();). If I commented the line out, Me TV would start without a problem. So, I altered the code a bit:
if (engine_type == "xine")
{
// catch engine init failure
TRY
engine = new XineEngine();
CATCH
// throw Exception("Could not initialize MainWindow::engine"); Log::write("Could not initialize MainWindow::engine");
engine = NULL;
}
I'll try to take a look at xine_engine.cc, maybe I can find something (but I don't know much about C++ ).
Hi, I tried the second application.cc you attached, and this time the exception "Application class can only be instantiated once" is not triggered. The threading issue remains, though. The debug trace looks pretty much the same.
Then, I fired up Anjuta and added debug messages in various parts of the source code. So far, I narrowed the problem down to line 97 in main_window.cc ( engine = new XineEngine();). If I commented the line out, Me TV would start without a problem. So, I altered the code a bit:
if (engine_type == "xine") :engine" );
Log:: write(" Could not initialize MainWindow: :engine" );
{
// catch engine init failure
TRY
engine = new XineEngine();
CATCH
// throw Exception("Could not initialize MainWindow:
engine = NULL;
}
I'll try to take a look at xine_engine.cc, maybe I can find something (but I don't know much about C++ ).