ESchack
27-10-2006 10:28:47
Hi, I am currently working on a mesh viewer application using Mogre. Everything has been working great so far, but I recently ran into a strange problem. The VertexElement object seems to be behaving wierd.
Heres some very simple code that exposes the problem:
I believe the above code should work, but it throws the exception below on the line "if (verElem == null)".
Any ideas?
Keep up the good work with Mogre!
Heres some very simple code that exposes the problem:
Mogre.VertexElement verElem = null;
if (verElem == null)
{
Console.WriteLine("Oh, I wish this worked!");
}
I believe the above code should work, but it throws the exception below on the line "if (verElem == null)".
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="Mogre"
StackTrace:
at Mogre.VertexElement.op_Equality(VertexElement lhs, VertexElement rhs)
at LEXIView.MainForm..ctor(String sOpenFileName) in D:\ITE5000\Tools\LEXIView\LEXIView\MainForm.cs:line 52
at LEXIView.Program.Main(String[] args) in D:\ITE5000\Tools\LEXIView\LEXIView\Program.cs:line 21
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Any ideas?
Keep up the good work with Mogre!