stop in winhand for DEBUG version and OK in Release version
Posted on 1997-05-18
Hi,have a nice day.
A project runs through winhand.cpp in OnTimer.
Here is winhand.cpp.
void CHandleMap::RemoveHandle(HANDLE h)
// make sure the handle entry is consistent
if (LookupTemporary(h, pTemp))
// temporary objects must have correct handle values
HANDLE* ph = (HANDLE*)(pTemp + 1); // after CObject
ASSERT(ph == h); //<----- (****)
When the project runs in DEBUG model,
after some minutes, assertion failed in (****)
But in RELEASE model, it is OK.
More informations are DEBUG model,ph and h are
increasing when running and I work in Visual C++ 1.0.
The question is
1. Is it truely OK when RELEASE version?
2. How can I debug the problem when DEBUG version?
Any suggestions are useful for me. Thanks.