var decSize = ZStdDecompressor.GetUpperBound(frames[i].frame); byte[] fo = new…
- User
var decSize = ZStdDecompressor.GetUpperBound(frames[i].frame); byte[] fo = new byte[decSize]; Unhandled Exception: System.OverflowException: Arithmetic operation resulted in an overflow. at NJJM.AssetProcessor.BinParse.ParseMain(List
1 frames, List1 output) in C:\Users\User\source\repos\StarliteExtractor\StarliteExtractor\NJJM\NJJM.cs:line 145 at StarliteExtractor.Program.Extract(String arg1, String arg2) in C:\Users\User\source\repos\StarliteExtractor\StarliteExtractor\Program.cs:line 63 at StarliteExtractor.Program.Main(String[] args) in C:\Users\User\source\repos\StarliteExtractor\StarliteExtractor\Program.cs:line 31 - Assistant
The error you're encountering is a
System.OverflowExceptionin your C# program, which indicates that an arithmetic operation in your code led to an overflow. This typically happens when a value exceeds the storage capacity of the data type it is being stored in. Here's how you might go about troubleshooting and fixing the problem: