Main Site Documentation

Equivalent for .NETMF 'remainingRam = Debug.GC(false);' in TinyCLR


#1

Hello, I searched for a while but couldn’t yet find the TinyCLR equvalent for the command: remainingRam = Debug.GC(false);

Is there an equivalent command and which is the namespace

Kind Regards

RoSchmi


#2

I have been asking for this as well.


#3

LOL, whom did you ask? However it means that there is actually no way to read the remaining ram and to force a GC action at a certain place in code?


#4

Take a look at UsedBytes and FreeBytes in GHIElectronics.TinyCLR.Native.Memory in the GHIElectronics.TinyCLR.Native nuget.


#5

Thanks John, I’m sorry that I have to ask so much. TinyCLR is still new and searches in the forum often do not give the needed information. I think that there isn’t yet a complete Class Library?


#6

No worries, we’re always happy to help. The libraries are complete at their core but we’re still working on getting the additional commercial features added. If you find something missing just let us know.


#7

DOOOOOOOOOOCS… we are working on it. Check github if you can’t wait.


#8

We can’t wait of course ! :wink:
It’s very a good point that all is on GitHub: we can see it even if it isn’t yet published.