If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
-
infx
- Posts: 3
- Joined: Wed Jan 07, 2009 8:28 pm
Post
by infx »
Hi, i have problem with newton & irrlicht engines. I learning by Newton wiki tutorial.
Here is error:
Code: Select all
error C2248: 'irr::core::CMatrix4<T>::M' : cannot access private member declared in class 'irr::core::CMatrix4<T>'
of this code
Code: Select all
NewtonBodySetMatrix(beat_Body, &matrix.M[0]);
on newton wiki, I learned that it is wrong declaration, because it was changed in the irrlicht 1.3 or 1.4
This text translated by Google... Sorry for my english
-
zillion42
- Posts: 324
- Joined: Wed Aug 29, 2007 12:32 am
- Location: Hamburg, Germany
Post
by zillion42 »
use matrix.pointer() instead...
-
infx
- Posts: 3
- Joined: Wed Jan 07, 2009 8:28 pm
Post
by infx »
yeeah, thanks.. With declaration is not problem, but is problem for runtime with:
Code: Select all
core::aabbox3d<f32> box = beat->getBoundingBox();
when you start the jump table with break and continue and with the description:
Code: Select all
Unhandled exception at 0x00433fa6 in 04.Movement.exe: 0xC0000005: Access violation reading location 0x00000000.
what is the problem?
Thx for answer
-
zillion42
- Posts: 324
- Joined: Wed Aug 29, 2007 12:32 am
- Location: Hamburg, Germany
Post
by zillion42 »
no idea sorry, maybe first search then ask in the official irrNewton thread...
-
hybrid
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
-
Contact:
Post
by hybrid »
The problem is obviously a null pointer. Looks like you have something corrupted in your code.