-
I'm on swig-1.3.31.
The way vectors are wrapped, getting an item out of a vector will return an object that is effectively a wrapped pointer, but its validity depends on the lifespan of the vector.
v = vector()
item = v[3]
del v
# segfault
print item.foo
I didn't notice this being documented anywhere.
Note that this is the kind of code I was getting a crash on:
def get()...
2007-04-25 00:00:16 UTC in SWIG
-
Small tweak to the SwigValueWrapper, it could output types like:
SwigValueWrapper bar;
The "
2007-03-29 23:01:34 UTC in SWIG
-
When using the shadow feature to replace a proxy
method, the string "$action" is being substituted to
the wrong value.
Instead of using the mangled c name, such as
"Fooc::Bar", it is using the unmanged name "Foo::Bar",
which ends up making perl throw a "Can't locate
auto/..." error.
The proper way to name the action is visible in the
else clause of the patched code when the shadow...
2006-09-20 04:07:58 UTC in SWIG
-
jrray committed patchset 8 of module pgpchat to the pgpchat CVS repository, changing 1 files.
2004-02-08 09:34:21 UTC in pgpchat
-
jrray committed patchset 7 of module pgpchat to the pgpchat CVS repository, changing 1 files.
2002-08-24 01:31:04 UTC in pgpchat
-
jrray committed patchset 6 of module pgpchat to the pgpchat CVS repository, changing 1 files.
2002-08-24 01:30:10 UTC in pgpchat
-
jrray committed patchset 5 of module pgpchat to the pgpchat CVS repository, changing 4 files.
2002-08-24 00:33:28 UTC in pgpchat
-
jrray committed patchset 4 of module pgpchat to the pgpchat CVS repository, changing 1 files.
2002-08-24 00:29:41 UTC in pgpchat
-
jrray committed patchset 3 of module pgpchat to the pgpchat CVS repository, changing 4 files.
2002-08-24 00:24:03 UTC in pgpchat
-
jrray committed patchset 2 of module pgpchatd to the pgpchat CVS repository, changing 3 files.
2002-08-24 00:19:20 UTC in pgpchat