Re: [python-win32] Ref-count bug in win32file.GetQueuedCompletionStatus

2005-06-02 Thread Fred Gansevles
> > Hi, > > I think I've found a ref-count bug in > win32file.GetQueuedCompletionStatus > > You have indeed! GetQueuedCompletionStatus used to assume that the > OVERLAPPED object was previously added to the IOCP via > PortQueuedCompletionStatus. I've now fixed that bug and checked the change

[python-win32] return pramater in com object function

2005-06-02 Thread Gijs Korremans
Hi, One of the functions in the com object I need to use has a pointer in one of it's functions (object.function(string input, struct * output)) (I've created the struct with win32com.client.Record("structure", object)) I've tried to use the id() function but then Python gives me a message that

[python-win32] Swig DLL with ASP

2005-06-02 Thread Emlyn Jones
Hello, I have Python working as the script engine for ASP under IIS 5.1, XP Pro. I created a DLL using SWIG and Visual Studio .NET which works fine from the command line but when I try and run it from an ASP script I get: """ DLL load failed: Invalid access to memory location """ When I try to impo

[python-win32] Question: Finding the "owner" Of A Process

2005-06-02 Thread Gooch, John
Title: Question: Finding the "owner" Of A Process I am trying to print out the owner of running process on Windows 2000 Professional ( SP4 ) using WMI, but my call to the "GetOwner" Process defined here - http://msdn.microsoft.com/library/default.asp?url="">, which is part of the Win32_Process

[python-win32] Strange page header text in PythonWin

2005-06-02 Thread Robert Adams
Title: Message Hello List,   Can anyone please point in the correct direction to resolve this minor printing annoyance. When printing a copy of my code, why is the header using strange characters and not readable text as expected ?   Thanks in advance! Robert __

[python-win32] 1MB Thread Stack Size

2005-06-02 Thread Tim Roberts
On Wed, 01 Jun 2005 17:25:50 -0700, "Hughes, Chad O" <[EMAIL PROTECTED]> wrote: >I have a program that needs to create a great deal of threads. >Unfortunately, I cannot seem to find a way to lower the 1MB default >stack size per thread. The threading module does not seem to support >setting the

Re: [python-win32] 1MB Thread Stack Size

2005-06-02 Thread Hughes, Chad O
Actually, the bottleneck is not the CPU. Using Perfmon, I have verified that I can currently have 1000 threads running with under 25% CPU usage. The threads are fairly light weight. However, the stack size for each thread is by default 1MB, so the memory is the bottleneck. I want to have about 10

[python-win32] Re: Question: Finding the "owner" Of A Process

2005-06-02 Thread Roger Upole
You should be able to use proc.ExecMethod_('GetOwner'). All the parameters are output, so you shouldn't have to pass anything in. hth Roger ___ Python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-

Re: [python-win32] return pramater in com object function

2005-06-02 Thread Mark Hammond
> One of the functions in the com object I need to use has a > pointer in one of it's functions > (object.function(string input, struct * output)) In that case you should be writing: ret = object.function("input") And ret should be the record structure. Mark

Re: [python-win32] Strange page header text in PythonWin

2005-06-02 Thread Mark Hammond
Title: Message I'm afraid you would need to look in pythonwin\pywin\scintilla\view.py and try to determine what is going wrong.   Cheers,   Mark -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Robert AdamsSent: Friday, 3 June 2005 4:24 AMTo:

Re: [python-win32] COM server with events and multiple threads

2005-06-02 Thread Mark Hammond
> I attached a zip file that contains a small python COM server and a > small VB6 client that reproduces the problem. > > The server sends events to the VB6 client, but the problem is > the events > are handled in different threads in the VB6 client. > > I would appreciate it if someone could tell