call ecore_init() in the CoreRuntime constructor.
[platform/core/dotnet/launcher.git] / NativeLauncher / launcher / dotnet / dotnet_launcher.cc
index 9e3a077..e6d3bc7 100644 (file)
@@ -37,6 +37,8 @@
 #include <vconf.h>
 #include <app_common.h>
 
+#include <Ecore.h>
+
 #include "injection.h"
 #include "utils.h"
 #include "log.h"
@@ -283,6 +285,9 @@ CoreRuntime::CoreRuntime(const char* mode) :
 {
        _INFO("Constructor called!!");
 
+       // Intiailize ecore first (signal handlers, etc.) before runtime init.
+       ecore_init();
+
        char *env = nullptr;
        env = getenv("CORECLR_ENABLE_PROFILING");
        if (env != nullptr && !strcmp(env, "1")) {