From: Dutchnomad on
Hello, I am checking out the sample for using the GPS intermediate driver
from managed code that is provided in de SDK.
I notice that when closing the GPS the software 'hangs' on the statement:

lock (this)
{
if (newLocationHandle != IntPtr.Zero)
{
CloseHandle(newLocationHandle);
newLocationHandle = IntPtr.Zero;
}

if (deviceStateChangedHandle != IntPtr.Zero)
{
CloseHandle(deviceStateChangedHandle);
deviceStateChangedHandle = IntPtr.Zero;
}

if (stopHandle != IntPtr.Zero)
{
CloseHandle(stopHandle);
stopHandle = IntPtr.Zero;
}
}

It seems that the lock is never been released. How can I solve this problem?
Please explain.

Thnx,

Dutchnomad