Forum Discussion

StwKubak's avatar
StwKubak
Copper Contributor
Jun 24, 2021

freeze at CreateInstance when trying to get acedao version

 

Hello,

while running our program, we noticed a change in behavior after updating MS Office within the Insider program to ver. 2106.
Problem appears at point "hr = dbEngine.CreateInstance(__uuidof(DBEngine));" where the function stops work.

 

  1. CsVersion GetAceDaoVersion()
  2. {
  3. CsVersion ver;
  4. LPTSTR lpszFilePath = "acedao.dll";
  5. HRESULT hr = ::CoInitialize(NULL);
  6. if (hr != S_OK)
  7. {
  8. return ver;
  9. }
  10. _DBEnginePtr dbEngine;
  11. hr = dbEngine.CreateInstance(__uuidof(DBEngine));
  12. if (hr != S_OK)
  13. {
  14. return ver;
  15. }
  16. ver.LoadInfoFromFile(lpszFilePath);
  17. return ver;
  18. }
     

     

    Has anyone noticed a similar problem or change?

Resources