Hi Rene,
This is the code of DynSize(), as it is defined in the X# runtime:
Code: Select all
[Obsolete( "'DynSize()' is not supported and always returns 0" )] ;
FUNCTION DynSize(dwPages AS DWORD) AS DWORD
RETURN 0
So as you can see, it definitely has no impact in the app
The reason why it is not supported (together with many other memory management functions) is what Wolfgang said, in .Net and X# it is not the X# runtime that has control of memory management, this is completely controlled by the .Net runtime itself and concepts like manually adjusting the available memory pool do not apply at all.
Although regarding Collect() in particular, this is also not supported either (its implementation again does nothing), but actually it can be implemented, because also in .Net it is possible to manually invoke the garbage collector, with GC.Collect(). But while in VO we very often have to use Collect() in order to workaround the shortcomings and bugs of the memory management system of VO, in .Net it is usually strongly advised to never invoke the GC manually, but instead let itself decide when it needs to be invoked. In 99% of the cases this works well, so I think it's better to not worry about it yet (and let your Collect() calls remain obsolete, doing nothing), until you possibly find a reason for changing this.