Roughly 45% of the time that I build and deploy a TinyCLR application (known working) through VS2017 for my BrainPad (running TinyCLR 0.5.0), I get the following sequence in the VS2017 output window:
Failed allocation for 1026 blocks, 16416 bytes
The thread ‘’ (0x2) has exited with code 0 (0x0).
The program ‘ TinyCLR application: Managed’ has exited with code 0 (0x0).
Internal error: call to memory allocation during garbage collection!!!
The last line is what I’m concerned about. I can’t try the build/deploy again until I physically reset the BrainPad board.
This is not a showstopper, because trying again works (most of the time). But I’m curious what might be going wrong.
Any ideas where this is coming from, and if there’s something I can do to avoid it?