*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build: PowerShell Studio 2017 v5.4.145
32 or 64 bit version of product: 64-bit
Operating system: Windows 10 v1709
32 or 64 bit OS: 64-bit
*** Please add details and screenshots as needed below. ***
Hi!
I have a project which seems to cause the debugger to hang, lose track of the presence and location of breakpoints, and to return null for any statement entered into the debug console. The most notable fact about this project is that I am handling a 1MB byte array; passing that array to functions seems to cause some serious weirdness, even if I pass it by reference.
To reproduce the issue, place a breakpoint in TestClient.ps1, line 329, and step forward. Here's the code from this function ($Bytes is the 1MB byte array):
Code: Select all
function SHA1_Bytes
{
param
(
[ref]$Bytes
)
$SHA1Provider = new-object -TypeName System.Security.Cryptography.SHA1Cng
$SHA1Hash = [System.BitConverter]::ToString($SHA1Provider.ComputeHash($Bytes.Value))
$SHA1Hash = $SHA1Hash.ToLower() -replace '-', ''
return $SHA1Hash
}
This issue does not occur if I debug the project in PowerShell ISE.
I've attached the project to this message.