Change-Id: I142bd6f5ab42414d0f9183535751143a3e20d3e3
__hostHandle(nullptr),
__domainId(-1),
fd(0),
- __mode(mode)
+ __mode(mode),
+ __initialized(false)
{
_DBG("Constructor called!!");
return -1;
}
+ __initialized = true;
+
return 0;
}
int CoreRuntime::launch(const char* appId, const char* root, const char* path, int argc, char* argv[])
{
+ if (!__initialized) {
+ _ERR("Runtime is not initialized");
+ return -1;
+ }
+
if (path == nullptr) {
_ERR("executable path is null");
- return -11;
+ return -1;
}
if (!isFileExist(path)) {
unsigned int __domainId;
int fd;
const char* __mode;
+ bool __initialized;
};
} // dotnetcore