put debug message under ifdef

git-svn-id: trunk@8475 -
This commit is contained in:
micha 2006-01-09 18:24:56 +00:00
parent ab74ec8969
commit aaeb3b393d

View File

@ -303,9 +303,11 @@ var
retVal, index: dword;
Begin
repeat
{$ifdef DEBUG_ASYNCEVENTS}
if Length(FWaitHandles) > 0 then
DebugLn('[ProcessMessages] WaitHandleCount=,', IntToStr(FWaitHandleCount),
'WaitHandle[0]=', IntToHex(FWaitHandles[0], 8));
DebugLn('[ProcessMessages] WaitHandleCount=', IntToStr(FWaitHandleCount),
', WaitHandle[0]=', IntToHex(FWaitHandles[0], 8));
{$endif}
retVal := Windows.MsgWaitForMultipleObjects(FWaitHandleCount,
FWaitHandles[0], false, 0, QS_ALLINPUT);
if (WAIT_OBJECT_0 <= retVal) and (retVal < WAIT_OBJECT_0 + FWaitHandleCount) then