Skip to content

Commit 8eaa7ce

Browse files
committed
Added missing lock.
1 parent 21ff443 commit 8eaa7ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Memory/RemoteProcess.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,11 @@ public IntPtr ParseAddress(string addressFormula)
573573
/// <returns>The task.</returns>
574574
public Task LoadAllSymbolsAsync(IProgress<Tuple<Module, IEnumerable<Module>>> progress, CancellationToken token)
575575
{
576-
var copy = modules.ToList();
576+
List<Module> copy;
577+
lock (modules)
578+
{
579+
copy = modules.ToList();
580+
}
577581

578582
// Try to resolve all symbols in a background thread. This can take a long time because symbols are downloaded from the internet.
579583
// The COM objects can only be used in the thread they were created so we can't use them.

0 commit comments

Comments
 (0)