Python/COM scale problem with Internet Explorer

Discussion in 'Python' started by Florian Fredegar Haftmann, Aug 23, 2004.

  1. Hi!

    For a regression test setup on web interfaces, I use a test tool which
    in a very heavywight fashion uses the COM interface to the Internet
    Explorer (of course, from Python, ver 2.3.4, win32com build 163,
    Windows XP, IExp ver 6.0.2800). During a session, many COM controls
    are installed in order to trace actions inside the Internet Explorer.

    After a certain amount (100?) of sessions (each about 2 until 5
    minutes), allocating a new InternetExplorer control is not possible
    any more, throwing an exception. The code snippet

    [...]
    try:
    iexp = InternetExplorer()
    except pythoncom_error:
    ...
    [...]

    (where InternetExplorer is the COM class materialized by makepy) then
    leads to the except branch.

    This "denial" state persists until a certain amount of time (may be
    half an hour) has passed.

    Its worth noting that each session is carried out sequentially in a
    distinct process. I also made certain assurance tests on free memory
    and CPU resources - there is definitvly no bottleneck. The issue
    therefore seems to be a COM scale problem.

    Has anyone experience with a comparable scale problem and knows how to
    cirumvent it?

    Any suggestion welcomed.


    Thanks & Greetings
    Florian Haftmann
    Florian Fredegar Haftmann, Aug 23, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. cmay
    Replies:
    0
    Views:
    1,129
  2. Skip Montanaro

    Internet-scale distributed computing?

    Skip Montanaro, Feb 26, 2004, in forum: Python
    Replies:
    4
    Views:
    323
  3. Chris Cottee
    Replies:
    3
    Views:
    541
    MarcSchwarz
    Jul 7, 2004
  4. Ed Hauptman
    Replies:
    7
    Views:
    1,014
    Ed Hauptman
    Aug 7, 2009
  5. John Smith
    Replies:
    1
    Views:
    139
    Evertjan.
    Mar 12, 2005
Loading...

Share This Page