A question. If I do, in Win32:
GlobalUnlock(hMem);
GlobalFree(hMem);
Is there any chance that the memory will move in between the
unlock and the free? It's an implementation question, obviously, as I
imagine any given implementation of Win32 is free to move any unlocked
memory around, but I wonder when, say, Windows XP, does it (if
ever). Reason I ask is I'm working on some code that has a lot of:
GlobalUnlock(GlobalPtrHandle(pPointer));
GlobalFree(GlobalPtrHandle(pPointer));
Which Boun
dsChecker is flagging as an error. It's obviously right, but I
wonder if there was in fact any chance of an error caused by this.
7:03:19 AM
|