debug program on device..

nl1007

Member
Licensed User
Longtime 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?
 

agraham

Expert
Licensed User
Longtime User
Does this mean there's a chm file I also need to copy?
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.b4x.com/forum/4461-post10.html

I can't test it on the PC, because it uses the (new) GPS driver for the built-in facility
My http://www.b4x.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.

Is there an equivalent to the Error object, that I can use in an Errorlabel code section, to provide more information?
Yes, my http://www.b4x.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.b4x.com/forum/additional...-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.b4x.com/forum/additional-libraries/3314-dll-version-listings.html for some interesting libraries.
 

nl1007

Member
Licensed User
Longtime 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..
 
Top