Hi,
I use the following ctype to load a .so library in Linux.
vr = ctypes.CDLL(sstr)
And the following to release it so that i can reload the library without
quiting the python script.
_ctypes.dlclose(vr._handle)
These calls are guarded by a writer lock and access to it guarded by a
reader lock which i got from recipe :
http://code.activestate.com/recipes/413393/
The problem is during the re-loading of the library occasionally the
python script will abort with "Segmentation Fault". This is like 1 out
of 10 times it can happen and that
is good enough to kill the application.
Is there any reason to this or how to do i prevent it?
Marcus .CM
--
http://mail.python.org/mailman/listinfo/python-list