By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,957 Members | 2,017 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,957 IT Pros & Developers. It's quick & easy.

debugging python COM server

P: n/a

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.
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Max Ischenko <ma*@ucmg.com.ua.remove.it> writes:
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.
--

Syver Enstad
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.