Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc1, 0.4rc2, and 0.4rc3

Overlay: Set win32com "_reg_threading_" property to 'Apartment' (was 'Both')

win32com registers COM servers per default with a value of "Both" for the registry named value
"ThreadingModel" in the component's "InprocServer32" key, which doesn't make any sense here,
since the TortoiseHg overlay handler cannot handle free threading calls anyway (which is
implied with "Both"). Best solution would be if win32com by default would not set
"ThreadingModel". Reference: book by Rogerson, Dale: "Inside COM", page 340.

Changeset b017ee4c3ce5

Parent 80047c5c496a

by Adrian Buehlmann

Changes to one file · Browse files at b017ee4c3ce5 Showing diff from parent 80047c5c496a Diff from another changeset...

 
86
87
88
 
89
90
91
 
86
87
88
89
90
91
92
@@ -86,6 +86,7 @@
  _public_methods_ = [   "GetOverlayInfo", "GetPriority", "IsMemberOf"   ] + _reg_threading_ = 'Apartment'     def GetOverlayInfo(self):   icon = thgutil.get_icon_path("status", self.icon)