Tip Bank

DevX - Software Development Resource

Release Virtual Machine Resources

Failing to release virtual machine resources results in a ‘memory leak.’ The following example is missing the ReleaseIntArrayElements call: jint * tempArray = env->GetIntArrayElements(jiArray, false);if (tempArray ){ return;}if (…) //

DevX - Software Development Resource

Add Line Numbers in Your VS.NET Code Window

To add line numbers in your VS.NET code window: Go to VS.NET?>Tools?>Options?>Text Editor. Choose the language of your choice and select the Line Number checkbox under Display. This will add

DevX - Software Development Resource

A List of JDBC Drivers

If you need to access a database with Java, you need a driver. This is a list of the drivers available, what database they can access, who makes it, and

DevX - Software Development Resource

Retrieving Only Unique Elements from Two Sets

This algorithm helps you to retrieve all the elements contained in the first set (set1), but not in the second (set2). Here’s the template: templatevoid Diff(const T& set1, const T&

DevX - Software Development Resource

Fixing a CVS -n Update Error

Suppose a CVS -n update throws the following error: cvs update: inflate: unknown compression methodcvs [update aborted]: reading from server: Input/output error When you use the -n option, there’s a