|
@@ -58,7 +58,7 @@ namespace OTSController {
|
|
{
|
|
{
|
|
|
|
|
|
|
|
|
|
- //m_bInit is the dll loading flag,so there's no need to free it manually , it'll be release when the the process complete.(gsp)
|
|
|
|
|
|
+ //m_bInit is the dll loading flag,so there's no need to free it manually , it'll be release when the the whole process is complete.(gsp)
|
|
if (!m_bInit)
|
|
if (!m_bInit)
|
|
{
|
|
{
|
|
// calculate Bruker client dll name
|
|
// calculate Bruker client dll name
|
|
@@ -68,7 +68,7 @@ namespace OTSController {
|
|
// load Bruker client dll name succeed
|
|
// load Bruker client dll name succeed
|
|
LogTrace(__FILE__, __LINE__, _T("COTSBrukerImpl::Init: bruker client dll name: %s"), strBruckerDllName);
|
|
LogTrace(__FILE__, __LINE__, _T("COTSBrukerImpl::Init: bruker client dll name: %s"), strBruckerDllName);
|
|
|
|
|
|
- m_bInit=BrukerDll::LoadEspritAPI();
|
|
|
|
|
|
+ m_bInit = BrukerDll::LoadEspritAPI(strBruckerDllName.GetBuffer());
|
|
// load Bruker client dll OK?
|
|
// load Bruker client dll OK?
|
|
if (!m_bInit)
|
|
if (!m_bInit)
|
|
{
|
|
{
|