Microsoft .NET Framework out-of-memory error

I have a program that’s mainly playing video files (Animation codec with alpha layer) and it froze and then gave me this Microsoft .NET Framework error. After hitting “quit” the whole computer became unresponsive and needed a hard reboot.

net-error

System = Windows 10. The processing application was run as an executable. No other major software was running on that computer, besides the minmum of background processes.

This error came up twice, and both times the computer froze. I haven’t been able to replicate it since. And I’ve been monitoring the CPU and Memory of the application with the task manager. There’s no significant increase of memory happening.

I am currently trying to figure out what the connection between Processing and the Microsoft .NET framework is.