From: Woongsuk Date: Thu, 27 Mar 2025 04:04:38 +0000 (+0900) Subject: Disable diagnostics on dotnettool X-Git-Tag: accepted/tizen/unified/20250415.112926~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fecf7fcad22c620eeadd752d393155d2b250a0ca;p=platform%2Fcore%2Fdotnet%2Flauncher.git Disable diagnostics on dotnettool When crossgen is forcibly terminated due to an external factor, a file related to diagnostics is left under /tmp directory. Since the related file is not needed during crossgen, the feature is disabled. --- diff --git a/NativeLauncher/tool/ni_common.cc b/NativeLauncher/tool/ni_common.cc index 2a78afc..8ba02d2 100644 --- a/NativeLauncher/tool/ni_common.cc +++ b/NativeLauncher/tool/ni_common.cc @@ -921,6 +921,9 @@ ni_error_e initNICommon() inFile >> __interval; } + // disable diagnostics when running crossgen + putenv(const_cast("COMPlus_EnableDiagnostics=0")); + if (initializePluginManager("normal")) { _SERR("Fail to initialize PluginManager"); return NI_ERROR_UNKNOWN;