T
Tony Johansson
Hi!
It's easy to understand memory but I find it harder to really understand
resources.
Some of you has mentioned resources such as file object, network sockests
and things like that.
If we for example take the file object resource does this mean that there
exist a maximum number of file object that can exist in an application.
If we for example take the Pen object resource does this mean that there
exist a maximum number of Pen object that can exist in an application.
If we for example take the Brush object resource does this mean that there
exist a maximum number of Brush object that can exist in an application.
If we for example take the Network sockets resource does this mean that
there exist a maximum number of Network sockets object that can exist in an
application.
This was just an example of a coupe of classes that implements the
IDisposable.
Should I understand it in that way that my example describe ?
//Tony
It's easy to understand memory but I find it harder to really understand
resources.
Some of you has mentioned resources such as file object, network sockests
and things like that.
If we for example take the file object resource does this mean that there
exist a maximum number of file object that can exist in an application.
If we for example take the Pen object resource does this mean that there
exist a maximum number of Pen object that can exist in an application.
If we for example take the Brush object resource does this mean that there
exist a maximum number of Brush object that can exist in an application.
If we for example take the Network sockets resource does this mean that
there exist a maximum number of Network sockets object that can exist in an
application.
This was just an example of a coupe of classes that implements the
IDisposable.
Should I understand it in that way that my example describe ?
//Tony