From mlego at pobox.sk Mon Aug 21 14:46:43 2000 From: mlego at pobox.sk (Martin Lehotsky) Date: Mon, 21 Aug 2000 14:46:43 +0200 Subject: [C++-SIG] debug assertion fails when exiting python Message-ID: <200008211246.OAA31268@www1.pobox.sk> Hello, Had anybody have similar problem or does anybodoy know the solution ? When I wrap classes of a library (using swig), I can make their instance in python and use it without any problem. The library's code is in another dll file. But when I try to write my own classes inherited from library`s classes and call them from python, I get this windows error message "debug assertion fails " in dbgheap.c by deleting an object, even if I don't instantiate my classes (code of my classes was in third dll) thanks a lot Martin Lehotsky From xavier.warin at der.edfgdf.fr Mon Aug 28 11:33:32 2000 From: xavier.warin at der.edfgdf.fr (Xavier Warin) Date: Mon, 28 Aug 2000 11:33:32 +0200 Subject: [C++-SIG] How to get CXX-5.0 Message-ID: <39AA31EC.98098E4@der.edfgdf.fr> Hi ! I have a problem to get CXX-5.0. I have a proxy and i can't use CVS to get the new version. Does anybody know how to get .tgz version ? Thank You very much From dubois1 at llnl.gov Mon Aug 28 14:52:44 2000 From: dubois1 at llnl.gov (Paul F. Dubois) Date: Mon, 28 Aug 2000 05:52:44 -0700 Subject: [C++-SIG] How to get CXX-5.0 In-Reply-To: <39AA31EC.98098E4@der.edfgdf.fr> Message-ID: I just posted 5.0b; we have been putting off doing this because one of us had a problem on one platform/compiler (I even forget which one). We need more eyeballs here. Previous users of version 4 should note the massive and incompatible changes, particularly on the Extension side. Files have been renamed, etc. This incorporates Barry Scott's and Geoff Furnish's work and is doubtless a big improvement on the original in this area. Unfortunately, I can't even build it properly myself right now so all I can tell you is that it compiles ok with gcc 2.95.2. I figure it is better to put it out there since the three of us seem totally tied up at the moment. > -----Original Message----- > From: c++-sig-admin at python.org [mailto:c++-sig-admin at python.org]On > Behalf Of Xavier Warin > Sent: Monday, August 28, 2000 2:34 AM > To: c++-sig at python.org > Subject: [C++-SIG] How to get CXX-5.0 > > > Hi ! > > I have a problem to get CXX-5.0. I have a proxy and i can't use CVS to > get the new version. > Does anybody know how to get .tgz version ? > Thank You very much > > > > > _______________________________________________ > C++-SIG maillist - C++-SIG at python.org > http://www.python.org/mailman/listinfo/c++-sig > From vanandel at atd.ucar.edu Mon Aug 28 19:14:02 2000 From: vanandel at atd.ucar.edu (Joe Van Andel) Date: Mon, 28 Aug 2000 11:14:02 -0600 Subject: [C++-SIG] 5.0b : CXX.example throws exception. Message-ID: <39AA9DDA.D108EA0C@atd.ucar.edu> Using Python 1.52, gcc 2.95.2 on Redhat Linux 6.2 (As a minor correction, to run the example, I had to add "libraries=['stdc++']" to Demo/setup.py, in the invocation of 'Extension()' Even though I had linked Python with c++, 'cerr' was undefined until I linked the extension with std+++.) When I try to run the example (import CXX.example), it throws an exception: #0 0x80c3f64 in __throw () #1 0x40422890 in Py::Object::validate (this=0xbfffdc50) at /local/include/python1.5/CXX/Exception.hxx:19 #2 0x404031fc in Py::ExtensionModuleBase::module (this=0x811a548) at /local/include/python1.5/CXX/Objects.hxx:123 #3 0x40403525 in Py::ExtensionModuleBase::moduleDictionary (this=0x811a548) at /local/etc/CXX/cxx_extensions.cxx:108 #4 0x40424ef8 in Py::ExtensionModule::initialize (this=0x811a548, module_doc=0x4043f820 "documentation for the example module") at /local/include/python1.5/CXX/Extensions.hxx:191 #5 0x403de46d in initexample () at example.cxx:266 #6 0x805f540 in _PyImport_LoadDynamicModule (name=0xbfffe754 "CXX.example", pathname=0xbfffe2c4 "/usr/local/lib/python1.5/site-packages/CXX/example.so", fp=0x8112828) at ./importdl.c:851 Any idea how to fix this? -- Joe VanAndel National Center for Atmospheric Research http://www.atd.ucar.edu/~vanandel/ Internet: vanandel at ucar.edu -------------- next part -------------- A non-text attachment was scrubbed... Name: vanandel.vcf Type: text/x-vcard Size: 330 bytes Desc: Card for Joe Van Andel URL: From fdrake at beopen.com Thu Aug 31 19:37:45 2000 From: fdrake at beopen.com (Fred L. Drake, Jr.) Date: Thu, 31 Aug 2000 13:37:45 -0400 (EDT) Subject: [C++-SIG] --with-cxx patch to build process Message-ID: <14766.38889.794761.644401@cj42289-a.reston1.va.home.com> One of the old bugs (filed in Jitterbug) offered a patch from Geoff Furnish to add a --with-cxx option to Python's configuration script for Unix. The bug report is old, however. What is the current state of this work? My understanding is that the biggest issue with this work is that Python's main() needs to be compiled with C++ to ensure that constructors of C++ objects are properly called when loaded with dynamic extensions, so I presume the basic requirement hasn't changed. If anyone has a version of this patch that has been tested with the CVS version of Python and recent CXX versions, I'd appreciate an update to the bug report: http://sourceforge.net/bugs/?func=detailbug&bug_id=110840&group_id=5470 I'll be unavailable to check it out until after the beta is released, but would like to get this in if I can. Thanks! -Fred -- Fred L. Drake, Jr. BeOpen PythonLabs Team Member