Strange TypeLoadException
-
I am using the VS.Net 2005 alpha and I am getting a strange exception. When I try to use the Axiom graphics library, it crashes when it tries to load the Win32InputReader class. After some commenting, I found that the exception does not happen when I comment out the line "private MouseState mouseState;". MouseState is a DirectX type. I am using the Summer 2003 version of DirectX. It compiles fine, but stops when it tries to load that type. What could be causing this? Compiles fine...
-
I am using the VS.Net 2005 alpha and I am getting a strange exception. When I try to use the Axiom graphics library, it crashes when it tries to load the Win32InputReader class. After some commenting, I found that the exception does not happen when I comment out the line "private MouseState mouseState;". MouseState is a DirectX type. I am using the Summer 2003 version of DirectX. It compiles fine, but stops when it tries to load that type. What could be causing this? Compiles fine...
You have broken something in your constructor or being called from you constructor. Never let exceptions be thrown from a constructor. I suggest you delay some logic. Also look at the warnings, you are likely hiding a variable in the base class.
-
You have broken something in your constructor or being called from you constructor. Never let exceptions be thrown from a constructor. I suggest you delay some logic. Also look at the warnings, you are likely hiding a variable in the base class.