]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/helpers.cpp
Some refinements to my experimental RPM builder script and spec
[wxWidgets.git] / wxPython / src / helpers.cpp
index bc9dab80718d2c307b2521ef10f7ace055eb31e8..6ccc4303667e1c43d694c17f00bc1cf8f52c531b 100644 (file)
@@ -586,7 +586,15 @@ void wxPySaveThreadState(PyThreadState* tstate) {
     for(size_t i=0; i < wxPyTStates->GetCount(); i++) {
         wxPyThreadState& info = wxPyTStates->Item(i);
         if (info.tid == ctid) {
-            info.tstate = tstate;
+#if 0
+            if (info.tstate != tstate)
+                wxLogMessage("*** tstate mismatch!???");
+#endif
+            // info.tstate = tstate;    *** DO NOT update existing ones???
+            // Normally it will never change, but apparently COM callbacks
+            // (i.e. ActiveX controls) will (incorrectly IMHO) use a transient
+            // tstate which will then be garbage the next time we try to use
+            // it...
             wxPyTMutex->Unlock();
             return;
         }