Commit df5da9c5 authored by SND\kernelnet_cp's avatar SND\kernelnet_cp
Browse files

[pykd] fixed: WindbgGlobalSession constructor


git-svn-id: https://pykd.svn.codeplex.com/svn@70143 9b283d60-5439-405e-af05-b73fd8c4d996
parent 0fe89427
......@@ -654,8 +654,10 @@ private:
PyImport_AppendInittab("pykd", initpykd );
PyEval_InitThreads();
Py_Initialize();
main = boost::python::import("__main__");
boost::python::object main_namespace = main.attr("__dict__");
......@@ -688,7 +690,9 @@ private:
}
~WindbgGlobalSession() {
g_dbgClient.removeEventsMgr();
Py_Finalize();
}
......@@ -697,6 +701,8 @@ private:
static volatile LONG sessionCount;
static WindbgGlobalSession *windbgGlobalSession;
PyThreadState *initThreadState;
};
volatile LONG WindbgGlobalSession::sessionCount = 0;
......
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