I've been experimenting the last few days with the trial version of Map Suite Geocoder (version 22.214.171.124) and everything was going fine until I decided to test the reverse geocoding feature. When I tried to match a latitude/longitude my host application would totally crash. I am using the geocoder in a COM object so I can expose its features to a Win32 application. The reverse geocoding works fine when I try it under the sample applications you provide.
The weird thing is that if I use a street address in the Match method then it is working fine but as soon as I use coordinates it crashes. I've tested my COM Object on two different computers (one with Vista, the other with Win XP) and both experienced the same problem. On top of that, if I access my COM Object via a VB script is working fine even with the coordinates match string. Kind of crazy..
I have attached a zip file with all the projects and the VB script so you can give it a try and maybe figure out what is causing the problem. I've reduced the COM Object interface to the minimum so you can test it.
Geocoder is being used in an assembly which is being used for COM Interop. The assembly is being registered using the RegAsm utlity with the /codebase /tlb options.
COM Object is being used by a Delphi 7 application. Type library is being imported by Delphi 7.
USAGeocoder.Match crashes when trying to match a string with coordinates, e.g. usaGeocoder.Match("42.020431 -87.666757"), but works fine when trying to match a street name, e.g. usaGeocoder.Match("5300 N Winthrop Ave").
Uses .NET Framework 3.5 (I've also tried to recompile using Framework 4 with the same results). My assembly was compiled using MS Visual C# 2010 Express.
Let me know if you need more info. Thanks..
001_Geocoder_COM_Interop.zip (408 KB)