C++ extension modules on NT
Duncan Grisby
dgrisby at uk.research.att.com
Fri Nov 5 12:01:49 EST 1999
In article <7vuqa8$fvi$1 at pineapple.uk.research.att.com>,
Duncan Grisby <dgrisby at uk.research.att.com> wrote:
[...global constructors in DLL...]
>On NT, however, the constructors are never called, and the global
>objects contain garbage. The document "Extending and Embedding the
>Python Interpreter" mentions this problem in section 1.11, and says
>that the problem doesn't occur if the Python interpreter's main()
>function is compiled with C++. Unfortunately, this appears to be
>incorrect, and the constructors still aren't called.
Following up to my own post, it turns out that the problem I was
having was something else (to do with dllimport), and the constructors
_are_ being called. So now my question is: are there any platforms for
which the comment in the documentation is true?
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --
More information about the Python-list
mailing list