Release COM dll crash problem (Windows 7 64bit OS)
-
I have a COM dll used by an other application (release) on Windows 7 64bit. The Debug version of dll COM works fine. But the release version causes crash. When trying to get the origin of problem (with "try...catch" )I discovered that it seems to be in the instruction below : m_pConnection->Open(bstrConnectionString, wstrSuperUserDB.c_str(), wstrSACUserPassword.c_str(), Internal::adConnectUnspecified); where : m_pConnection : Internal::_ConnectionPtr bstrConnectionString : _bstr_t wstrSuperUserDB, wstrSACUserPassword : std::wstring please have you any idea about this ?
-
I have a COM dll used by an other application (release) on Windows 7 64bit. The Debug version of dll COM works fine. But the release version causes crash. When trying to get the origin of problem (with "try...catch" )I discovered that it seems to be in the instruction below : m_pConnection->Open(bstrConnectionString, wstrSuperUserDB.c_str(), wstrSACUserPassword.c_str(), Internal::adConnectUnspecified); where : m_pConnection : Internal::_ConnectionPtr bstrConnectionString : _bstr_t wstrSuperUserDB, wstrSACUserPassword : std::wstring please have you any idea about this ?
-
I have a COM dll used by an other application (release) on Windows 7 64bit. The Debug version of dll COM works fine. But the release version causes crash. When trying to get the origin of problem (with "try...catch" )I discovered that it seems to be in the instruction below : m_pConnection->Open(bstrConnectionString, wstrSuperUserDB.c_str(), wstrSACUserPassword.c_str(), Internal::adConnectUnspecified); where : m_pConnection : Internal::_ConnectionPtr bstrConnectionString : _bstr_t wstrSuperUserDB, wstrSACUserPassword : std::wstring please have you any idea about this ?
What is the value of
m_pConnection
at this point? I would suggest you add some code to check that your variables contain correct values.Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
I have a COM dll used by an other application (release) on Windows 7 64bit. The Debug version of dll COM works fine. But the release version causes crash. When trying to get the origin of problem (with "try...catch" )I discovered that it seems to be in the instruction below : m_pConnection->Open(bstrConnectionString, wstrSuperUserDB.c_str(), wstrSACUserPassword.c_str(), Internal::adConnectUnspecified); where : m_pConnection : Internal::_ConnectionPtr bstrConnectionString : _bstr_t wstrSuperUserDB, wstrSACUserPassword : std::wstring please have you any idea about this ?
sorry for the mistake I mean that the dll installed with the Installer causes crash. but the dll I just compile (debug or release version) works well. I think the problem is at this level (i'm not sure): m_pConnection->Open(bstrConnectionString, wstrSuperUserDB.c_str(), wstrSACUserPassword.c_str(), Internal::adConnectUnspecified); (this is using a log file) Is this related to the creation of version installer or something else ?!
-
What is the value of
m_pConnection
at this point? I would suggest you add some code to check that your variables contain correct values.Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
sorry for the mistake I mean that the dll installed with the Installer causes crash. but the dll I just compile (debug or release version) works well. I think the problem is at this level (i'm not sure): m_pConnection->Open(bstrConnectionString, wstrSuperUserDB.c_str(), wstrSACUserPassword.c_str(), Internal::adConnectUnspecified); (this is using a log file) Is this related to the creation of version installer or something else ?!
-
compile the release version with no optimisations, enable debug code in the compiler and linker, then debug it
sorry for the mistake I mean that the dll installed with the Installer causes crash. but the dll I just compile (debug or release version) works well. I think the problem is at this level (i'm not sure): m_pConnection->Open(bstrConnectionString, wstrSuperUserDB.c_str(), wstrSACUserPassword.c_str(), Internal::adConnectUnspecified); (this is using a log file) Is this related to the creation of version installer or something else ?!
-
sorry for the mistake I mean that the dll installed with the Installer causes crash. but the dll I just compile (debug or release version) works well. I think the problem is at this level (i'm not sure): m_pConnection->Open(bstrConnectionString, wstrSuperUserDB.c_str(), wstrSACUserPassword.c_str(), Internal::adConnectUnspecified); (this is using a log file) Is this related to the creation of version installer or something else ?!
-
is it crashing *inside* that call, is m_pConnection valid, are the strings valid? What is the behaviour? COM is normally very good at letting you know, via error codes, what's wrong The installer should create no differences
-
if we considerate that Installer not make difference , why crash only on version installer ? How know what is wrong via error codes?
when you find the crash, the answer will probably present it It sounds like you have a problem you'll have to debug - again, are the pointers valid, are the parameters valid? Another option is attach to the running version, either in Visual Studio, or with WinDebug, but, again, compile without optimisations, and make sure you generate PDB files