Hard to find a pattern when the program gets unstable, most often it happens when coordinates are entered manually (0/0 or 52/0) followed by a 'Enter' and then I do one (or some more) double click(s) to move the center point of the map. Another time the crash could be reproduced when entering a location name ("greenwich") instead of the lat/lon coordinates or to enter the location name directly after the coordinates have been entered.
Some other times I can do the same things with no single crash, maybe it depends on how long the cache tiles need to be loaded from the internet (maybe you can try to add a delay into these routines just for a test).
Sorry I can't give you more detailed information at the moment...
Code:
[09:46:27] [COMPILER] Line 354: File not found (C:\Users\Michael\AppData\Local\Temp\gettext.pbi).
:
[09:47:05] The Program execution has finished.
[09:47:11] Waiting for executable to start...
:
[09:47:13] The Program execution has finished.
[09:47:19] Waiting for executable to start...
[09:47:19] Executable type: Windows - x86 (32bit, Unicode, Thread)
[09:47:19] Executable started.
[09:48:33] [ERROR] Line: 1241
[09:48:33] [ERROR] Invalid memory access. (read error at address 4294967293)
[09:48:55] The debugged executable quit unexpectedly.
[09:48:58] Waiting for executable to start...
[09:48:57] Executable type: Windows - x86 (32bit, Unicode, Thread)
[09:48:58] Executable started.
[09:51:23] [ERROR] Line: 1241
[09:51:23] [ERROR] Invalid memory access. (read error at address 4294967293)
[09:53:48] The debugged executable quit unexpectedly.
[09:57:21] Waiting for executable to start...
[09:57:21] Executable type: Windows - x86 (32bit, Unicode, Thread)
[09:57:21] Executable started.
[09:58:19] [ERROR] Line: 1143
[09:58:19] [ERROR] Invalid memory access. (read error at address 4294967293)
[09:58:45] The debugged executable quit unexpectedly.
[07:08:59] Waiting for executable to start...
[07:08:59] Executable type: Windows - x86 (32bit, Unicode, Thread)
[07:08:59] Executable started.
[07:12:18] The Program execution has finished.
[07:12:23] Waiting for executable to start...
[07:12:23] Executable type: Windows - x86 (32bit, Unicode, Thread)
[07:12:23] Executable started.
[07:12:37] [ERROR] Line: 1143
[07:12:37] [ERROR] Invalid memory access. (read error at address 4294967293)
[07:12:57] The Program was killed.
[07:13:04] Waiting for executable to start...
[07:13:04] Executable type: Windows - x86 (32bit, Unicode, Thread)
[07:13:04] Executable started.
[07:13:51] The Program execution has finished.
[07:13:56] Waiting for executable to start...
[07:13:56] Executable type: Windows - x86 (32bit, Unicode, Thread)
[07:13:56] Executable started.
[07:14:22] The Program execution has finished.
[07:14:31] Waiting for executable to start...
[07:14:31] Executable type: Windows - x86 (32bit, Unicode, Thread)
[07:14:31] Executable started.
[07:14:54] [ERROR] Line: 1474
[07:14:54] [ERROR] Invalid memory access. (read error at address 4294967293)
[07:15:10] The debugged executable quit unexpectedly.
[07:17:20] Waiting for executable to start...
[07:17:19] Executable type: Windows - x86 (32bit, Unicode, Thread)
[07:17:20] Executable started.
[07:17:42] [ERROR] Line: 1347
[07:17:42] [ERROR] Invalid memory access. (read error at address 4294967293)
[07:17:50] The Program was killed.
Just a small point I would change for the edit gadgets - these three lines of code for selecting the whole text when getting the focus:
Code:
Case #StringLatitude, #StringLongitude
Select EventType()
Case #PB_EventType_Focus
CompilerIf #PB_Compiler_OS=#PB_OS_Windows
SendMessage_(GadgetID(Gadget),#EM_SETSEL,0,-1)
CompilerEndIf
AddKeyboardShortcut(#Window_0, #PB_Shortcut_Return, #MenuEventLonLatStringEnter)