)
{
return new OPAQUE();
}
void destroyer(OPAQUE*& x)
{
delete (x);
x = NULL;
}
img = CameraConnect_Fake_Python.FACTORY()
CameraConnect_Fake_Python.DESTROYER(img)
It runs correctly!
Hope someone can help...
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.
o need to keep
anything in sync.
2) you can base the Python exception on the standard PyExc_Exception but use
PyErr_SetObject in the exception translator. A quick search finds this
http://stackoverflow.com/questions/2261858/boostpython-export-custom-exception
(does not inherit from Exception,
oes work even if you have
wrapped MyException as a standard class.
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318 Fax: +390302659932
E-mail: giuseppe.corbe...@copanitalia.com
___
Cpluspl
fine a new C++ exception CustomException based on std::exception
*) Register a translator from C++ to python using CustomError as a target
Seems a reasonable approach.
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318 Fax: +390302659932
E-mail: giuseppe.
d serve somehow like a "__dict__" on
the C++ side.
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318 Fax: +390302659932
E-mail: giuseppe.corbe...@copanitalia.com
___
Cplusplus-sig mailing list
Cp
ticStdString;
}
First you register the converter(s).
Second you instantiate the one and only A_Wrap.
Everytime you access staticStdString just return A_Wrap::staticStdString.
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318 Fax: +390302659932
E-mail
exception would raise from the event loop,
unless catched while calling the callback function pointer.
Sidenote: how does the C++ exception mechanism work under the hood? What
happens if it's called inside a C compiled function?
--
Giuseppe Corbelli
WASP Software Engineer, Copan
On 03/04/2013 10:08, Holger Joukl wrote:
Hi Giuseppe,
thanks for answering and sorry for the delayed response. Easter
holidays :-)
To punish you here's another late reply.
Giuseppe Corbelli wrote on 28.03.2013
09:37:39:
On 26/03/2013 18:51, Holger Joukl wrote:
Hi,
I'm wr
uot; the objects from the shared .so. Maybe playing dirty with LD_PRELOAD?
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318 Fax: +390302659932
E-mail: giuseppe.corbe...@copanitalia.com
___
Cplusplus-sig m
brary.
Your extension module needs to access the Command Manager, so make sure it has
already been initialized before the module is loaded, else the
GetCommandManager() may return NULL.
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318 Fax: +390302
out module support,
and link everything static. I just don't know how much work would it take.
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318 Fax: +390302659932
E-mail: giuseppe.corbe...@copanitalia.com
__
function_args)
did not match C++ signature:
cpp_function_name(cpp_args)
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318 Fax: +390302659932
E-mail: giuseppe.corbe...@copanitalia.com
___
Cplusplus-sig mailing
C++ code object and ValueError (I think) when the C++ code object
raises an exception without a specific C++ to python exception translator
installed.
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318 Fax: +390302659932
E-mail: giuseppe.corbe...@
Foundation.
*Notes: *
- physx comes as SDK: only Headers, libs and dlls.
Before reading on I'd investigate the "no RTTI data" message.
Make sure you're using the /GR compiler option.
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666
crt) and it's
not a good idea. Don't have any reference at hand right now, sorry.
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318 Fax: +390302659932
E-mail: giuseppe.corbe...@copanitalia.com
r(x.data(),implicit_cast(x.size())),
&PyUnicode_Type)
# endif
PyUnicode_FromWideChar returns NULL on failure, so a SEGV may as well be
expected.
AFAIK an UTF16 encoding should be OK.
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318 Fax: +39
fined in Python/pystate.c and
initialized as NULL.
In Python/pythonrun.c within Py_InitializeEx() call a new thread state is
initialized and PyThreadState_Swap() sets it.
In short: I'd say you didn't call Py_Initialize() before dlopen()ing the
shared objects.
--
Giusep
mic\threading-multi
\test\andreas_beyer.cpp /TP /nologo
-TP /Z7 /W3 /GR /MDd /Zc:forScope /Zc:wchar_t /wd4675 /EHs /DBOOST_ALL_NO_LIB=1
/DNDEBUG
In this way the compiler relies on the default architecture.
1: https://msdn.microsoft.com/en-us/library/7t5yh4fd
18 matches
Mail list logo