I have stripped down the application to what are the two problems I have:
(i) The drawing speed is still very slow (ticks shown in form1 caption). On the PC I have 250 ticks, on the device 7000. I have tried to do a lot, amongst it a pure integer coordinates conversion but this doesn't speed up at all. Actually it becomes even slower. I run out of ideas now, but I know there are means that can draw polylines much much faster, like in BeelineGPS, which is a GPS tracker
BeeLineGPS™.
(ii) The imagelib exception with the line pen1.color=color1 still persists, albeit now only when the screen is converted to Fullscreen or back. Sometimes also an NullReferencePointer exception is thrown. The line can be commented and changed to pen1.new1(color1) in the source (then also the initial new1 in App_start needs to be commented).
The zip attached has all the required files in it. The exception should be reproducable on the device.
Thanks
Download:
http://jetvision.de/download/test.zip (due to size unable to attach here)