Browse Source

Waiting longer for a callstack

Source commit: d3c58050aad80f06db6df73642f6c38f1b11e6d2
Martin Prikryl 7 năm trước cách đây
mục cha
commit
9703c4b4f5
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 2 0
      source/packages/jcl/JclDebug.pas
  2. 1 1
      source/windows/ConsoleRunner.cpp

+ 2 - 0
source/packages/jcl/JclDebug.pas

@@ -5246,8 +5246,10 @@ begin
   Strings.BeginUpdate;
   try
     for I := 0 to Count - 1 do
+    begin
       Strings.Add(GetLocationInfoStr(Items[I].CallerAddr, IncludeModuleName, IncludeAddressOffset,
         IncludeStartProcLineOffset, IncludeVAddress));
+    end;
   finally
     Strings.EndUpdate;
   end;

+ 1 - 1
source/windows/ConsoleRunner.cpp

@@ -2603,7 +2603,7 @@ int __fastcall DumpCallstack(TConsole * Console, TProgramParams * Params)
 
     ConsolePrintLine(Console, FORMAT(L"Requested callstack dump for process %d...", (ProcessId)));
 
-    int Timeout = 10;
+    int Timeout = 30;
     while (!FileExists(FileName))
     {
       Sleep(1000);