[Python.Net] AcquireLock deadlock while calling Python from C#
3 Dec
2010
3 Dec
'10
9:46 a.m.
Hi, sorry for the two posts, i was not sure if the mailing list server would let the first one be sent as this address wasn't registered :x I finally managed to solve the issue, and I'm a bit ashamed of the trivialness of the solution but well, it may help someone someday. The difference between the two executions was that as calculation is higly parallelized, the BeginAllowThread() method had to be called at start... Thought that using AcquireLock and ReleaseLock would be enough in order to ensure thread safety, but that's not the case. Also, EndAllowThread has to be called when stopping to use the PythonEngine, not on a perrequest basis. Now, this is working just great :) Best regards, Julien
5065
Age (days ago)
5065
Last active (days ago)
0 comments
1 participants
participants (1)
-
AwareMan