mindblender
17-06-2012 20:32:45
Hello,
I am very new to Mogre. I have read many topics that involve an AccessViolationException, but the ones I have seen so far have all dealt with trying to accomplish a complex task. I narrowed my code down to simply creating the Root object, defining the resources, creating the render system, and creating the render window. The error occurs WHENEVER the render window closes. This error has happened all throughout the basic tutorial series for me as well, but I have ignored it until now. It's probably something simple/stupid. I hope it is at least.
The details of the exception object are as follows:
System.AccessViolationException was unhandled
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=Mogre
StackTrace:
at Ogre.Root.{dtor}(Root* )
at Mogre.Root.!Root()
at Mogre.Root.Dispose(Boolean )
at Mogre.Root.Finalize()
I've tried to trap the AccessViolationException error and other types of errors, but with no success, because I think it is happening within Mogre.dll? Hopefully someone can help. I have a basic understanding of memory concepts, but I much prefer not to deal with all that unless I have to (which is why I chose Mogre vs Ogre), so my knowledge of all that stuff is fairly limited. Thanks in advance for any advice.
Again this happens whenever I close a render window, regardless of loading any resources or creating a scene. A blank render window will raise the same exception when I terminate the render loop.
I am very new to Mogre. I have read many topics that involve an AccessViolationException, but the ones I have seen so far have all dealt with trying to accomplish a complex task. I narrowed my code down to simply creating the Root object, defining the resources, creating the render system, and creating the render window. The error occurs WHENEVER the render window closes. This error has happened all throughout the basic tutorial series for me as well, but I have ignored it until now. It's probably something simple/stupid. I hope it is at least.
The details of the exception object are as follows:
System.AccessViolationException was unhandled
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=Mogre
StackTrace:
at Ogre.Root.{dtor}(Root* )
at Mogre.Root.!Root()
at Mogre.Root.Dispose(Boolean )
at Mogre.Root.Finalize()
I've tried to trap the AccessViolationException error and other types of errors, but with no success, because I think it is happening within Mogre.dll? Hopefully someone can help. I have a basic understanding of memory concepts, but I much prefer not to deal with all that unless I have to (which is why I chose Mogre vs Ogre), so my knowledge of all that stuff is fairly limited. Thanks in advance for any advice.
Again this happens whenever I close a render window, regardless of loading any resources or creating a scene. A blank render window will raise the same exception when I terminate the render loop.