© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
62 replies
Nolram

Async operations cause errorless crash (Task.Run etc.)

I am currently attempting to load about ~190MB worth of byte data from a file and decrypt it asynchronously. Loading the data using byte[] fileBytes = File.ReadAllBytes(...).ConfigureAwait(false) seems to work just fine - however, attempting to run the AES decryption on it with byte[] decryptedBytes = await Task.Run(() => DecryptionFunction(...))).ConfigureAwait(false); causes a crash without any error - not with a managed debugger (Rider) or Native Debugger (VS) or in the log files Unity provides.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

❔ Clarification on Async and Task.Run
C#CC# / help
3y ago
Async Task Help
C#CC# / help
2y ago
❔ Callback consumer to async Task
C#CC# / help
4y ago