Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Strange TypeLoadException

Strange TypeLoadException

Scheduled Pinned Locked Moved C#
graphicscsharpvisual-studiogame-devquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Broken God
    wrote on last edited by
    #1

    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...

    L 1 Reply Last reply
    0
    • B Broken God

      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...

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      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.

      top secret AdvancedTextBox

      A 1 Reply Last reply
      0
      • L leppie

        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.

        top secret AdvancedTextBox

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        I've commented out the contents of every function and it still happens. And the class does not have a base class.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups