strange Mogre problem


08-07-2008 16:30:30

hi all!!

i am facing a problem with the mogre.dll occasionally
An exception is thrown ::

An unhandled exception of type 'System.AccessViolationException' occurred in Mogre.dll

Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

like the image pasted below..
can any one of post me a solution to this.

thanx in advance. :) :) :) :) :)


08-07-2008 17:08:42

hmm hard to tell... what do you mean by occasionally?
Is the variable ent bound to something? Are you operating with more than one thread (like Application.Run())? Is the exception always occuring at the same line?

An access violation occurs in unmanaged or unsafe code when the code attempts to read or write to memory that has not been allocated, or to which it does not have access. This usually occurs because a pointer has a bad value.
In programs consisting entirely of verifiable managed code, all references are either valid or null, and access violations are impossible. An AccessViolationException occurs only when verifiable managed code interacts with unmanaged code or with unsafe managed code.

That's always a difficult issue and differs from case to case.


09-07-2008 12:24:01

by occasionally i mean to say it has come in other projects also.
But not in all projects..


1) i am using a separate thread.
2) entity is not bounded.


11-07-2008 09:58:26

Check resourse ninja.mesh, may be it isn't loaded.