Hi Brian, We've been using Python for .NET and it's been working pretty well interacting with a .NET DLL. However, we've encountered some problems with this multithreading scenario: 1) Create a "main" thread called: ThreadA 2) ThreadA can successfully invoke our .NET DLL. 3) ThreadA now spawns a child thread: Threadaa 4) Threadaa unsuccessfully invokes the .NET DLL. When we wrote to the console, we see Threadaa invoke the .NET DLL but the control never returns back to Threadaa after the .NET DLL call. Do you have any thoughts on this and do you have any suggestions? Thanks in advance for your help! Regards, Thuy Duong
Just to clarify - are you creating these threads from Python or from managed code? Brian Lloyd brian@zope.com V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com
-----Original Message----- From: Duong, Thuy [mailto:tduong@alarismed.com] Sent: Saturday, February 19, 2005 6:29 PM To: pythondotnet@python.org; brian@zope.com Cc: Smith, Don S. (ALARIS); vantuando@computer.org Subject: Python for .NET, multithreading case.
Hi Brian,
We've been using Python for .NET and it's been working pretty well interacting with a .NET DLL. However, we've encountered some problems with this multithreading scenario:
1) Create a "main" thread called: ThreadA 2) ThreadA can successfully invoke our .NET DLL. 3) ThreadA now spawns a child thread: Threadaa 4) Threadaa unsuccessfully invokes the .NET DLL. When we wrote to the console, we see Threadaa invoke the .NET DLL but the control never returns back to Threadaa after the .NET DLL call.
Do you have any thoughts on this and do you have any suggestions? Thanks in advance for your help!
Regards,
Thuy Duong
participants (2)
-
Brian Lloyd
-
Duong, Thuy