[pywin32-bugs] [ pywin32-Bugs-1422850 ] pythoncom curious behavior, possible bug
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2006-02-02 19:27:23
|
Bugs item #1422850, was opened at 2006-02-02 19:27 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1422850&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: com Group: None Status: Open Resolution: None Priority: 5 Submitted By: rbell01824 (rbell01824) Assigned to: Nobody/Anonymous (nobody) Summary: pythoncom curious behavior, possible bug Initial Comment: The attached test program was derived from the current distribution testexplorer.py. It is modified to catch most of IE's events and to output a message whenever an event occurs. As part of the message output the elapsed time since the start of the operation that should be generating events is output by calculating time.time()-timeStart. Based on the output, early in the applications execution, there is a period of time when events are occuring and timeStart appears to be 0. The code design and debug print statements indicate that this should not be the case under any circumstances. The behavior is odd and may be a bug. The period of time during which the behavior occurs depends on when/how pythoncom.PumpWaitingMessages() is called (see the comments on the WaitLoop statements in TestExplorerEvents). Incidentally, the code may provide a useful example of event processing for the distribution as the existing code implies message pump behaviors that are not generally reliable. You have my permission to use it in this fashion. The following clip from a run highlights the behavior: <<<<< Create IE ##### set timeStart <<<<< Try setting visible OK timeStart==0 5637330 1138908269.281 0 0 OnCommandStateChange Command -1 Enable False timeStart==0 5637330 1138908269.281 0 0 Visible True ******************************************************************************** ##### Navigate to [about:blank] waitstyle [] ##### set timeStart timeStart==0 5637330 1138908269.281 0 1 PropertyChange '{265b75c1-4158-11d0-90f6-00c04fd497ea}' timeStart==0 5637330 1138908269.296 0 1 OnBeforeNavigate2 URL [about:blank] Flags [0] TargetFrameName [] timeStart should not ever be 0 based on the code and debug prings. The test script is attached. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1422850&group_id=78018 |