Invalid Cast Exception

Discussion in 'Questions (Windows Mobile)' started by ceaser, Jan 11, 2009.

  1. ceaser

    ceaser Active Member Licensed User

    Hi Agraham

    I am using your delauney DLL and it works fine on the PC. But if I try to run it on the handheld it gives me an error .... :InvalidCastException.:sign0148:

    I am using the TIN Model to generate contours.......it used to work fine.

    Any idea what it could be or for what I must look?:sign0085:

    Thanks
    Michael
     
  2. agraham

    agraham Expert Licensed User

    Assuming that the app that fails on the device is optimised compiled you could find the line where it fails by using my http://www.basic4ppc.com/forum/share-your-creations/3632-debug-optimised-app-device-desktop.html library that adds line numbers to the error messages. Alternatively run it in the device IDE and if the error does not occur then post the source and I'll see if I can locate it on one of my devices.

    Also, if you haven't done this, try running it optimised compiled on the desktop and you may get a more complete error message.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice