Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python/COM scale problem with Internet Explorer

Thread Tools

Python/COM scale problem with Internet Explorer

Florian Fredegar Haftmann
Posts: n/a

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

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
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Explorer 8: C:\Program Files\Internet Explorer\iexplore.exe vs C:\Program Files (x86)\Internet Explorer\iexplore.exe Nathan Sokalski Windows 64bit 16 02-22-2010 08:31 AM
internet explorer 7 - Internet Explorer cannot display the webpag sandy j Windows 64bit 0 05-02-2009 02:12 AM
The Definitive Chord & Scale Bible - Literally EVERY chord and scale! Kind of Blue2 Digital Photography 1 02-08-2005 10:14 PM
can surf in Windows Explorer not Internet Explorer Billh Computer Support 0 05-02-2004 08:47 PM
Internet-scale distributed computing? Skip Montanaro Python 4 02-27-2004 08:42 PM