Setting up Nvidia PhysX SDK 3.2

Started by
0 comments, last by RJSkywalker 11 years, 6 months ago
Hi people,

I have a runtime DEBUG Assertion error when I m trying to setup a basic application using the latest Nvidia PhysX 3.2 sdk. I was just using the documentation and the tutorial mentioned at this blog : http://mmmovania.blo...th-physx-3.html as the only guide. He does mention a small change required for the 3.2 sdk.

This is where I m getting the assertion:
gPhysxFoundation = PxCreateFoundation(PX_PHYSICS_VERSION, gDefaultAllocatorCallback, gDefaultErrorCallback);


The declarations are:
PxFoundation* gPhysxFoundation = NULL;
static PxDefaultErrorCallback gDefaultErrorCallback;
static PxDefaultAllocator gDefaultAllocatorCallback;


And the Assertion is : Expression: (reinterpret_cast<size_t>(ptr) & 15) == 0 in the file: \include\extensions\pxdefaultallocator.h
Now according to the documentation, PhysX does implement a default version of the Default Allocator class and for the windows platform it does call _aligned_malloc(size, 16). Because this is what is happening. Its not able to align it to 16 bits.

Does anyone know how to solve this issue? I m only starting to learn PhysX and I cannot move forward without solving this issue.
Advertisement
I found the error: I was not including WIN32 in the preprocessor section of the properties

This topic is closed to new replies.

Advertisement