Skip to content

Commit bea7841

Browse files
nxtnRon Petrusha
authored andcommitted
Update .NET Core hosting sample not to unload CoreCLR library (#807)
1 parent 1458994 commit bea7841

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

core/hosting/HostWithCoreClrHost/src/SampleHost.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -238,18 +238,6 @@ int main(int argc, char* argv[])
238238
printf("coreclr_shutdown failed - status: 0x%08x\n", hr);
239239
}
240240

241-
// Unload CoreCLR
242-
#if WINDOWS
243-
if (!FreeLibrary(coreClr))
244-
{
245-
printf("Failed to free coreclr.dll\n");
246-
}
247-
#elif LINUX
248-
if (dlclose(coreClr))
249-
{
250-
printf("Failed to free libcoreclr.so\n");
251-
}
252-
#endif
253241
return 0;
254242
}
255243

0 commit comments

Comments
 (0)