{"record":{"id":"f8b0ea1372ea7cc4","repo":"AvaloniaUI/Avalonia","slug":"concurrent-operations-are-not-supported","errorCode":null,"errorMessage":"Concurrent operations are not supported.","messagePattern":"Concurrent operations are not supported\\.","errorType":"exception","errorClass":"InvalidOperationException","httpStatus":null,"severity":"warning","filePath":"src/Avalonia.Base/Collections/Pooled/ThrowHelper.cs","lineNumber":324,"sourceCode":"            throw new InvalidOperationException(\"Collection was modified during enumeration.\");\n        }\n\n        [DoesNotReturn]\n        internal static void ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen()\n        {\n            throw new InvalidOperationException(\"Invalid enumerator state: enumeration cannot proceed.\");\n        }\n\n        [DoesNotReturn]\n        internal static void ThrowInvalidOperationException_InvalidOperation_NoValue()\n        {\n            throw new InvalidOperationException(\"No value provided.\");\n        }\n\n        [DoesNotReturn]\n        internal static void ThrowInvalidOperationException_ConcurrentOperationsNotSupported()\n        {\n            throw new InvalidOperationException(\"Concurrent operations are not supported.\");\n        }\n\n        [DoesNotReturn]\n        internal static void ThrowInvalidOperationException_HandleIsNotInitialized()\n        {\n            throw new InvalidOperationException(\"Handle is not initialized.\");\n        }\n\n        [DoesNotReturn]\n        internal static void ThrowFormatException_BadFormatSpecifier()\n        {\n            throw new FormatException(\"Bad format specifier.\");\n        }\n\n        private static ArgumentException GetArgumentException(ExceptionResource resource)\n        {\n            return new ArgumentException(GetResourceString(resource));\n        }","sourceCodeStart":306,"sourceCodeEnd":342,"githubUrl":"https://github.com/AvaloniaUI/Avalonia/blob/11c542726898ae954a1ef668c65ec79ec92ab17d/src/Avalonia.Base/Collections/Pooled/ThrowHelper.cs#L306-L342","documentation":"Centralized ThrowHelper.ThrowInvalidOperationException_ConcurrentOperationsNotSupported throws InvalidOperationException \"Concurrent operations are not supported.\" It is a vestigial helper ported from the BCL (used there by concurrent collections' non-concurrent members). In this Avalonia codebase it has no active call site; PooledList/PooledStack are not concurrent collections and do not route any method to it.","triggerScenarios":"Not reachable through public Avalonia collection APIs — no method invokes this helper. It would only surface from a custom/internal call site.","commonSituations":"Seeing it implies a fork added a caller; otherwise it is unused dead code. Not something a normal Avalonia consumer triggers.","solutions":["Unreachable via public APIs — verify no internal/forked caller is involved.","If you need thread-safe access to a PooledList/PooledStack, use your own locking rather than expecting a concurrent collection.","Audit the call stack if it appears unexpectedly."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// Unreachable via public APIs. For thread-safe PooledList/PooledStack access,\n// use external locking instead of expecting a concurrent collection.","typeGuard":null,"tryCatchPattern":null,"preventionTips":["PooledList/PooledStack are not thread-safe; synchronize concurrent access yourself.","Do not call internal ThrowHelper methods directly.","Audit the call stack if this appears unexpectedly."],"tags":["csharp","pooled","throwhelper","concurrency","unreachable"],"backgroundTag":null,"analyzedSha":"11c542726898ae954a1ef668c65ec79ec92ab17d","analyzedAt":"2026-08-13T11:57:40.261Z","schemaVersion":2},"datasetVersion":"2026-08-13T14:17:21.547Z"}