Unhandled exception

gafman

28-11-2006 17:10:21

I've finally got nxOgre to compile with Ogre, but I get this error on the following line of code:

nxOgre::world* mWorld = new nxOgre::world(mRoot);

Error:

Unhandled exception at 0x00f6e553 in TowersTA.exe: 0xC0000005: Access violation reading location 0x00000000.

----------

mRoot is definetly setup.

betajaen

28-11-2006 17:13:16

Did you install the SystemSoftware?

gafman

28-11-2006 17:33:27

Yes, the latest version (6.1.25).
I may have installed it after the SDK, but this shouldn't make a difference right? Are there any Environmental Vars for SystemSoftware? I've set the one for PHYSX.

In addition, I've just ran it in release mode and come out with a slightly more informative error:
Unhandled exception at 0x00735ef7 (NxOgre.dll) in TowersTA.exe: 0xC0000005: Access violation reading location 0x00000000.

betajaen

28-11-2006 17:50:32

Nope it's not needed. The env. variable for PhysX is for your benefit than PhysX anyway.

What does the physics.log say?

gafman

28-11-2006 17:56:11

The log is completely empty actually.
I've just tried uninstalling systemSoftware 6.10.25 and installed 2.5.1 (I've read somewhere it's recommended), but I get the same problem.

This may be a stupid question, but is it neccesary to have a Physics Card installed? (I don't)

gafman

28-11-2006 17:58:56

The problem is exactly the same as the one mentioned in this post:

http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=2718

But a solution was never found

betajaen

28-11-2006 18:23:46

I'd say at this point, it's a problem with PhysX, or some class hasn't been set up correctly.

Possibly "error", but I very much doubt it.

Whats the last few lines of Ogre say?

[Edit]

Alright, I have a hunch, in "nxOgre_error.cpp", in the constructor around line 34, comment "_generateErrorMesh();"

gafman

28-11-2006 18:53:13

Thanks, will try it now

gafman

29-11-2006 07:30:44

I tried that last change (commenting out _generateErrorMesh()) but it didn't work.

Here's a screenshot of the debug if that helps:

betajaen

29-11-2006 09:28:35

Yep, it's a PhysX problem. The SDK isn't launching. Make sure you've installed correct version the SystemSoftware.exe that is mentioned with the PhysX version you downloaded (ideally 2.6.2).

I'd install the SystemSoftware first, then the PhysX SDK.

On another note:

First time, I've seen a try-catch block fail like that.

gafman

29-11-2006 09:38:06

Thanks for your help.

I'll try reinstalling the SDK and SystemSoftware when I get home.

Try-catches eh? Never know when they'll come in handy!

Thanks again