[Solved] Null pointer with NxGetCookingLib

VileMK3

02-10-2009 09:12:31

I've just finished setting everything up to use NxOgre but I've run into a small problem at runtime. I keep getting an access violation as I create the world. I've narrowed down the problem to these lines:

#ifndef NXOGRE_OPTIONS_MINIMAL
mCookingInterface = NxGetCookingLib(NX_PHYSICS_SDK_VERSION);
mCookingInterface->NxInitCooking();

mCooking Interface stays null after called NxGetCookingLib. Any idea what could be causing this? I've double checked the linking properties and they seem to be correct.
Any and all ideas are appreciated ^^

betajaen

02-10-2009 09:44:53

What PhysX SDK are you using 2.8.1?

VileMK3

02-10-2009 09:47:02

Yep, 2.8.1
NxOgre itself compiled correctly and I have the debug .dll's.

betajaen

02-10-2009 10:06:48

In C:\Program Files (x86)\AGEIA Technologies\v2.8.1 there are two dlls PhysXCore.dll and PhysXCooking.dll?

VileMK3

02-10-2009 10:12:19

I only have cooking and the map structure isn't the same as in your question... Perhaps I should re-instal physX?

EDIT: I do have PhysXCoreCHECKED.dll

VileMK3

02-10-2009 11:11:06

I just reinstalled PhysX, rebuilt NxOgre, updated everything and tried again but yet again the pointer remains null...

VileMK3

02-10-2009 11:36:58

Finally got it to work, I searched the forum again and found someone with the exact same problem. It was the system software again -_-'
Thanks for the help! ^^

betajaen

02-10-2009 12:05:51

I thought it might.

If the NxPhysicsSDK fails creation or the NxGetCookingLib gets a null pointer, it's almost certaintly the system software not being installed correctly.

AfyDriver

14-08-2011 10:27:49

In C:\Program Files (x86)\AGEIA Technologies\v2.8.1 there are two dlls PhysXCore.dll and PhysXCooking.dll?
i have this problem and i have both of them (.dll file) .
now , whats the problem ??????

betajaen

14-08-2011 20:33:54

You need to copy the dll files into your Application directory; usually all of them.

AfyDriver

20-08-2011 11:52:18

sry ! but you are wrong .
when i compile and use verson 2.8.3 i have many problem (as before) , i change version anf use the 2.8.1 ... 8) every thing is o.k !!!