Copyright 2018 © QuinStreet Inc. All Rights Reserved
DevX Tips Bank: Memory Management
Solving Eclipse (Ganymede) and PermGem Out-of-Memory Errors
If your Eclipse (Ganymede) installation with PermGem is raising out-of-memory errors, …
Avoiding Unnecessary Object Construction
One way to avoid unnecessary object construction is to use a reference instead of an …
How to Calculate the Alignment in C++
Learn how to use the Alignment class to calculate alignment in C++.
NET 2.0's System.Security namespace includes the
Avoid Memory Corruption when Assigning a CComBSTR to a CComVariant's bstrVal Member
Although the CComBSTR = operator is overloaded to make a copy of the string, this is not …
Create Two-Dimensional Arrays in the Heap
This code demonstrates how to create two-dimensional arrays in the heap.
The Added Benefit of Using
Not only does new allocate memory, it also calls the appropriate …
Tracking Memory Leaks in Java
Find out how you can track memory leaks in Java.
Protecting Freed Memory
Remember to be careful, when you're freeing memory, to set the memory contents to 0 so no …
Implementing the GetFreePhysicalMemory API in Linux
Because everything in Linux is composed of files, you can get any required information …
Release Virtual Machine Resources
Failing to release virtual machine resources results in a 'memory leak.'
When to Pass Parameters by Value
The main reason to pass parameters by value is to improve performance, which is somewhat …
When to Use Whole-object Member Variables
While it's usually best to use pointers for member variables rather than storing them by …
A C++ Mutex Operation for Intel-compatible Processors
Interprocess synchronization has always been classified as a "slow" operation, but that is …
to Handle Heterogeneous Data Elements in C++
Read about the many benefits of using struct to handle heterogeneous data elements …
Terms of Service
Licensing & Reprints