Commit daa1b200 authored by ussrhero's avatar ussrhero
Browse files

added CoInitialize/Uninitialize for DiaSession

parent c9e7f4b8
...@@ -206,7 +206,14 @@ public: ...@@ -206,7 +206,14 @@ public:
m_globalSymbol( DiaSymbol::fromGlobalScope( globalScope, getScopeName( session, globalScope ) ) ), m_globalSymbol( DiaSymbol::fromGlobalScope( globalScope, getScopeName( session, globalScope ) ) ),
m_session( session ), m_session( session ),
m_symbolFileName( symbolFile ) m_symbolFileName( symbolFile )
{} {
CoInitialize(NULL);
}
~DiaSession()
{
CoUninitialize();
}
virtual SymbolPtr getSymbolScope() { virtual SymbolPtr getSymbolScope() {
return m_globalSymbol; return m_globalSymbol;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment