RE: [Zope] Auto restart (at Zope's own initiative !!!)
Apartment vs Free? I was finally coming across that in the search. I suspect what I need to enforce is a single-thread apartment. Unfortunately, the examples I'm seeing are all ATL or VB. (God, I hate C.. too bad's it's as fast as I'm going to get) ---------- Keith J. Farmer kfarmer@thuban.org http://www.thuban.org -----Original Message----- From: Brian Lloyd [mailto:brian@zope.com] Sent: Tuesday, January 29, 2002 13:03
Would that make a difference between dying when imported at the beginning of a script, and not dying when imported within a run() method? Knowing C, I'd expect randomness, but this behavior is consistent.
Sure it could. If the dll you are calling maintains per-thread data structures or uses API calls that are sensitive to threading, you may well need to load and
Apartment vs Free? I was finally coming across that in the search. I suspect what I need to enforce is a single-thread apartment. Unfortunately, the examples I'm seeing are all ATL or VB.
(God, I hate C.. too bad's it's as fast as I'm going to get)
Here is an old mailing list item that may well be relevant. If the database interface you are using is COM-based, then it's quite likely that the problem is bound up with the threading model and CoInitialize. http://lists.zope.org/pipermail/zope/1999-May/088719.html Brian Lloyd brian@zope.com Software Engineer 540.361.1716 Zope Corporation http://www.zope.com
participants (2)
-
Brian Lloyd -
Keith J. Farmer