Re: How To Avoids CLR GC operation



The construct you're looking for is called a Constrained Execution Region.
It's not quite what you want, but it's likley very close.

Documentation:
http://msdn2.microsoft.com/en-us/library/ms228973.aspx

MSDN Article on the topic:
http://msdn.microsoft.com/msdnmag/issues/05/10/Reliability/default.aspx


.... Note: This isn't suitable for an entire application, but rather regions
of code. If that's your goal, you should use C++ or Delphi, as a managed
language (.Net, Java) isn't going to cut it.

--
Chris Mullins

"elwolv" <elwolv@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F985B6ED-4E0A-4557-9A04-FD967DA9AC54@xxxxxxxxxxxxxxxx
Hello;

I am trying to write a c# .net code where no GC un-timed memory operation.
the purpose of which is to allow the code to be responsive in real time as
possible.

what are the steps to talk in selecting type of objects and variable.
do we use a single class for the program?
how to make all structures and variables persistence not subject to GC?
what makes a method or functions persistence not subject to GC?

thank you

--
elwolv


.


Loading