debugging python COM server

M

Max Ischenko

Hi,

I wrote a COM server in python to be used from ASP/IIS environment.
And I have very bad problem with it -- from time to time dllhost.exe
goes to 100% CPU and hangs...only iisreset helps.

I wrote the test script that opens a bunch web sessions to IIS and
reproduce this deadlock. The problem seems to be caused by some race
condition in a COM destruction trace.

The hard part is that I have no idea how to debug this situation. I
added a bunch of print stmts in my python code but they didn't help. May
be it is a problem in win32com (or my usage of it) but I can't be sure.

Are there any tips or trick?

Your help is very appreciated.
 
S

Syver Enstad

Max Ischenko said:
Hi,

I wrote a COM server in python to be used from ASP/IIS environment.
And I have very bad problem with it -- from time to time dllhost.exe
goes to 100% CPU and hangs...only iisreset helps.

I wrote the test script that opens a bunch web sessions to IIS and
reproduce this deadlock. The problem seems to be caused by some race
condition in a COM destruction trace.

The hard part is that I have no idea how to debug this situation. I
added a bunch of print stmts in my python code but they didn't
help. May be it is a problem in win32com (or my usage of it) but I
can't be sure.

Are there any tips or trick?

Have you tried using win32traceutil? Python win has a viewer for
win32traceutil that enables you to see everything that is printed to
stdout.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,178
Messages
2,570,955
Members
47,509
Latest member
Jack116

Latest Threads

Top