Bläddra i källkod

Waiting longer for a callstack

Source commit: d3c58050aad80f06db6df73642f6c38f1b11e6d2
Martin Prikryl 7 år sedan
förälder
incheckning
9703c4b4f5
2 ändrade filer med 3 tillägg och 1 borttagningar
  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;
   Strings.BeginUpdate;
   try
   try
     for I := 0 to Count - 1 do
     for I := 0 to Count - 1 do
+    begin
       Strings.Add(GetLocationInfoStr(Items[I].CallerAddr, IncludeModuleName, IncludeAddressOffset,
       Strings.Add(GetLocationInfoStr(Items[I].CallerAddr, IncludeModuleName, IncludeAddressOffset,
         IncludeStartProcLineOffset, IncludeVAddress));
         IncludeStartProcLineOffset, IncludeVAddress));
+    end;
   finally
   finally
     Strings.EndUpdate;
     Strings.EndUpdate;
   end;
   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)));
     ConsolePrintLine(Console, FORMAT(L"Requested callstack dump for process %d...", (ProcessId)));
 
 
-    int Timeout = 10;
+    int Timeout = 30;
     while (!FileExists(FileName))
     while (!FileExists(FileName))
     {
     {
       Sleep(1000);
       Sleep(1000);