Read this article and make sure you follow the best practice steps..
- Allocate memory for the type that represents the resource.
- Initialize the memory to set the initial state of the resource and to make the resource usable.
- Use the resource by accessing the instance members of the type (repeat as necessary).
- Tear down the state of the resource to clean up.
- Free the memory.
|
No comments:
Post a Comment