search for: szargs

Displaying 1 result from an estimated 1 matches for "szargs".

Did you mean: sargs
2015 Feb 05
0
How to unload R.dll successfully by FreeLibrary
...386\\R.dll") HMODULEm_hRDll = LoadLibrary(STR_R_DLL_PATH); if ( m_hRDll ) { PFN_Rf_initEmbeddedR pfnInit = (PFN_Rf_initEmbeddedR)GetProcAddress(m_hRDll, "Rf_initEmbeddedR"); PFN_Rf_endEmbeddedR pfnEnd = (PFN_Rf_endEmbeddedR)GetProcAddress(m_hRDll, "Rf_endEmbeddedR"); char*szArgs[] = {"REmbeddedPostgres", "--gui=none", "--silent"}; BOOL bRet = pfnInit(_countof(szArgs), szArgs); //call second time, this function will not return //do something. pfnEnd(0); FreeLibrary(m_hRDll); //==> After this, R.dll still in memory, as I can see in Visual Stu...