Browse Source

TXMLDocument use from Issue 2249 on a background thread needs CoInitialize

Source commit: 47791b7b57890789e4b08f7758053f38e13dc057
Martin Prikryl 1 year ago
parent
commit
c10a05b5bd
1 changed files with 3 additions and 0 deletions
  1. 3 0
      source/core/Queue.cpp

+ 3 - 0
source/core/Queue.cpp

@@ -2673,6 +2673,9 @@ void __fastcall TTerminalThread::ProcessEvent()
   DebugAssert(FEvent != NULL);
   DebugAssert(FException == NULL);
 
+  // Needed at least for TXMLDocument use in TS3FileSystem
+  CoInitialize(NULL);
+
   try
   {
     FAction(NULL);