Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2006-09-12 13:06:55

Patches item #1557285, was opened at 2006-09-12 17:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gottfried Ganßauge (ganssauge)
Assigned to: Nobody/Anonymous (nobody)
Summary: opaque_pointer bug fix + enhancement

Initial Comment:
After debugging a crash I found out that all instances
created from opaque_pointer_converter had a type object
which itself didn't have a type, and this finally lead
to the crash.

The attached patch corrects this behaviour by
initialising the type object using PyType_Ready().

Furthermore I implemented cross module support in so
far as the converter registers itself only if not
another module already has registered the same
converter before.
The opaque test case has been update to check for the
segmentation fault mentioned in my previous post.
A test case for the cross module support is included

I also updated the documentation for opaque.

I tested my patch with
 - GCC-4.1 running on GNU/Linux
 - Visual-C++-6.5 running on Windows XP
 - Visual-C++-7.1 running on Windows XP

The patch is applied by calling
        patch -p1 < opaque_patch
in the root of the boost hierarchy.

Files patched are:


You can respond by visiting:

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at