debug program on device..

Discussion in 'Questions (Windows Mobile)' started by nl1007, Jul 16, 2009.

  1. nl1007

    nl1007 Member Licensed User

    I'm working on a GPS program, and it has been working OK, but has just started producing errors in the Timer_Tick event. I can't test it on the PC, because it uses the (new) GPS driver for the built-in facility..(the rest of the program works OK, but I don't 'Open' the GPS or enable the timer on the PC)
    I tried copying the source to the device (and the dlls), but I get an error when loading the source: "An error occurred. An error message cannot be displayed because an optional resource assembly containig it cannot be found".
    Does this mean there's a chm file I also need to copy? If so, where does it need to be?
    Is there an equivalent to the Error object, that I can use in an Errorlabel code section, to provide more information?
     
  2. agraham

    agraham Expert Licensed User

    The component of .NET with the error messages is missing from your device. I assume you are using .NET 2.0. If your device came with .NET 2.0 installed some manufacturers leave this out to save space - silly if you askl me! See http://www.basic4ppc.com/forum/4461-post10.html

    My http://www.basic4ppc.com/forum/additional-libraries/3327-gpsserial-library.html#post18685 provides an identical interface to a desktop (and device) serial GPS as GPSDriver does to the Windows Intermediate GPS Driver. I wrote it so that code could be moved from device to desktop and vice versa.

    Yes, my http://www.basic4ppc.com/forum/additional-libraries/2305-exceptions-handling-library.html#post12486 but it won't give you more information than the message box, it just lets you identify exceptions in code which otherwise you can't do.

    My http://www.basic4ppc.com/forum/addi...-suite-optimised-compiled-apps.html#post25745 will tell you the error line in an optimised compiled application where an exception occurs, normally this is not reported.

    If you haven't found it already you should browse http://www.basic4ppc.com/forum/additional-libraries/3314-dll-version-listings.html for some interesting libraries.
     
  3. nl1007

    nl1007 Member Licensed User

    thanks. downloading/installing the CAB gave me a useful message (missing GPS-OSGB dll) so I can load the source - but the timer error doesn't seem to occur in B4PPC on the device..
    My GPS device doesn't provide a serial interface to my laptop, either via USB or bluetooth.. maybe I need another program to echo the data from the Intermediate GPS driver, but I don't know if I can create/add/setup a serial port..
    I think I've seen that DLL list, before. I'll have another look..
     
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