diff --git a/procDump.ps1 b/procDump.ps1 index 2d5d78ccb..7ec4d047c 100644 --- a/procDump.ps1 +++ b/procDump.ps1 @@ -51,9 +51,16 @@ if (-not (Test-Path $filePath)) { #$process = Start-Process -FilePath "dotnet.exe" -PassThru -ArgumentList "tool run ModernUOSchemaGenerator -- ModernUO.sln" $toolProcess = Run-Process "dotnet.exe" "tool run ModernUOSchemaGenerator -- ModernUO.sln" -$dumpProcess = Run-Process "$procDumpFolder\procdump.exe" "-accepteula -ma -h $($toolProcess.Id) $procDumpFolder" +$dumpProcess = Run-Process "$procDumpFolder\procdump.exe" "-accepteula -ma -s 5 -n 5 $($toolProcess.Id) $procDumpFolder" while (-not $dumpProcess.HasExited) { Start-Sleep -Seconds 1 } +$toolProcess.Kill() + +# Start-Sleep -Seconds 30 + +# $dumpProcess = Run-Process "$procDumpFolder\procdump.exe" "-accepteula -ma -h $($toolProcess.Id) $procDumpFolder" +# $dumpProcess.WaitForExit() +