On 28/01/2014 17:33, Peter Armbrüster wrote:
Dear Boost.python, C++ and Py++ Experts,

this is my first post in your excellent Forum.

I have chosen as the wrapper software the boost.python/Py++ Packageto write a
physx 3.x Wrapper, because I think it is the best.

Many many thanks to David Abrahams and Roman Yakovenko for the great Tools.

The wrapping of old versions physx 2.x had made no problems.

And now I come across a  very big problem at the 3.x Versions.

All wrappings of classes works very well.

The problem only exists in the PhysX free functions, which are responsible for
the initialization of PhysX.

I try to explain with a reduced Example.

The initialization of PhysX starts with create of foundation :

*0 static*PxFoundation*mFoundation=NULL;

*1 static*PxDefaultErrorCallbackgDefaultErrorCallback;
*2 static*PxDefaultAllocatorgDefaultAllocatorCallback;
3
mFoundation=PxCreateFoundation(PX_PHYSICS_VERSION,gDefaultAllocatorCallback,gDefaultErrorCallback);4
*4 if*(!mFoundation)

5   fatalError("PxCreateFoundation failed!");

The wrapped python program generate a runtime error at line 3:RuntimeError:
Access violation - no RTTI data!

Its impossible to get mFoundation.

*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: +390303666318  Fax: +390302659932
E-mail: giuseppe.corbe...@copanitalia.com
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
https://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to