Prechádzať zdrojové kódy

Pure virtual function call caused by 348396c1

Source commit: ed456191dc0c86ca12ab3387359c06f0ba794d46
Martin Prikryl 3 rokov pred
rodič
commit
01c3658c00
2 zmenil súbory, kde vykonal 7 pridanie a 0 odobranie
  1. 1 0
      source/core/Queue.cpp
  2. 6 0
      source/windows/WinMain.cpp

+ 1 - 0
source/core/Queue.cpp

@@ -306,6 +306,7 @@ __fastcall TSimpleThread::TSimpleThread() :
 //---------------------------------------------------------------------------
 __fastcall TSimpleThread::~TSimpleThread()
 {
+  // This is turn calls pure virtual Terminate, what does not work as intended, do not rely on it and remove the call eventually
   Close();
 
   if (FThread != NULL)

+ 6 - 0
source/windows/WinMain.cpp

@@ -416,6 +416,7 @@ class TStartupThread : public TSimpleThread
 {
 public:
   TStartupThread();
+  virtual __fastcall ~TStartupThread();
 
   int GetStartupSeconds();
 
@@ -435,6 +436,11 @@ TStartupThread::TStartupThread()
   Start();
 }
 //---------------------------------------------------------------------------
+__fastcall TStartupThread::~TStartupThread()
+{
+//  Close();
+}
+//---------------------------------------------------------------------------
 int TStartupThread::GetStartupSeconds()
 {
   DebugAssert(!FStop);