PRB: GlobalUnlock Can Cause Fatal Exit 0x02F0

ID Number: Q49838

2.03 2.10 3.00 3.10

WINDOWS

Summary:

SYMPTOMS

Under the debugging version of Windows, when an application calls

the GlobalUnlock function, a FatalExit 0x02F0 "GlobalUnlock: Object

usage count underflow" error occurs.

CAUSE

The application called the GlobalUnlock function more times that it

called the GlobalLock function. Under the retail version of

Windows, the function returns the normal value 0 in these

circumstances.

RESOLUTION

Match each GlobalLock call with a GlobalUnlock call.

Additional reference words: 2.03 2.10 3.00 3.10 2.x SR# G891012-113

fatal exit 2F0 02F0 2F0h