diff --git a/PSFramework/PSFramework.psd1 b/PSFramework/PSFramework.psd1
index b4dcfd1..b59b6e4 100644
--- a/PSFramework/PSFramework.psd1
+++ b/PSFramework/PSFramework.psd1
@@ -4,7 +4,7 @@
RootModule = 'PSFramework.psm1'
# Version number of this module.
- ModuleVersion = '1.14.449'
+ ModuleVersion = '1.14.450'
# ID used to uniquely identify this module
GUID = '8028b914-132b-431f-baa9-94a6952f21ff'
diff --git a/PSFramework/bin/PSFramework.dll b/PSFramework/bin/PSFramework.dll
index 23cef64..d4339c8 100644
Binary files a/PSFramework/bin/PSFramework.dll and b/PSFramework/bin/PSFramework.dll differ
diff --git a/PSFramework/bin/PSFramework.pdb b/PSFramework/bin/PSFramework.pdb
index f280338..5c3b983 100644
Binary files a/PSFramework/bin/PSFramework.pdb and b/PSFramework/bin/PSFramework.pdb differ
diff --git a/PSFramework/changelog.md b/PSFramework/changelog.md
index be8779f..ee198f5 100644
--- a/PSFramework/changelog.md
+++ b/PSFramework/changelog.md
@@ -1,5 +1,9 @@
# CHANGELOG
+## 1.14.450 (2026-06-19)
+
+- Fix: Get-PSFMessage - may fail in a runspace situation
+
## 1.14.449 (2026-06-12)
- New: Configuration PSFramework.Message.LogErrorStack - When calling Write-PSFMessage and also specifying an ErrorRecord, should the ErrorRecord location of the error be used, rather than from where Write-PSFMessage was called?
diff --git a/library/PSFramework/Message/LogHost.cs b/library/PSFramework/Message/LogHost.cs
index bd92813..654d0de 100644
--- a/library/PSFramework/Message/LogHost.cs
+++ b/library/PSFramework/Message/LogHost.cs
@@ -151,9 +151,7 @@ public static int NextInterval
/// All errors thrown by functions using the message or flowcontrol system
public static PsfExceptionRecord[] GetErrors()
{
- PsfExceptionRecord[] temp = new PsfExceptionRecord[ErrorRecords.Count];
- ErrorRecords.CopyTo(temp, 0);
- return temp;
+ return ErrorRecords.ToArray();
}
///
@@ -162,9 +160,7 @@ public static PsfExceptionRecord[] GetErrors()
/// All messages logged this session.
public static LogEntry[] GetLog()
{
- LogEntry[] temp = new LogEntry[LogEntries.Count];
- LogEntries.CopyTo(temp, 0);
- return temp;
+ return LogEntries.ToArray();
}
///