I am using the OnDownloadFinish event and markers are only being added once a flag is set in this function.
I can reproduce the error after I close my application, clear cache and history from Internet explorer and then restart the application. When the map first loads the code breaks in the TWebGMaps.ExecJScript function. The script value being sent that is failing is:
'if (0<alllabels.length) { alllabels[0].show(); alllabels[0].setText("123 MAIN STREET"); }'
It also appears that scripts are only being run when bLaunchFinish is set to true.
The maps will work fine after the initial error and will only occur again if I clear the cache and history from IE.
I have not been able to reproduce this issue. Can you please provide a ready to run sample project that demonstrates the issue so I can further investigate this?