[Python.NET] .NET 2 and hang with AcquireLock

Matthew Pontefract MP at credaris.com
Tue Jun 6 12:07:44 CEST 2006


 

Hello


I have a question pertaining to running Python NET under .NET version 2
which, admittedly, is not the version for which the packages are built.

 

All works just fine - I am using the PythonEngine inside a web service,
acquiring the GIL before operations, releasing it in a 'finally' block
afterwards. This is fine provided no python exceptions are raised in the
Python code. Even though the GIL is released in the C#, a subsequent
call to AcquireLock will hang as if waiting for it to be released. No
calls to acquirelock have been made between the last call to release the
GIL and the call that hangs.


Has anyone else had this problem?

 

I am using Python 2.4

 

Regards

Matthew

 

Dr Matthew Pontefract

Credaris Portfolio Management 

________________________________________

 

mp at credaris.com

T : (44) 207 925 8365

F : (44) 207 925 8399

 

CPM Advisers Limited

Norfolk House

30 Charles II Street

London

SW1Y 4AE

www.credaris.com

 

Regulated by the Financial Services Authority

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythondotnet/attachments/20060606/7e980288/attachment.html 


More information about the PythonDotNet mailing list