Quantcast
Channel: GMap.NET - Great Maps for Windows Forms & Presentation
Viewing all articles
Browse latest Browse all 3384

Commented Unassigned: GMap.NET Active X Component Shuts down [16094]

$
0
0
I have made an ActiveX component using GMap.Net which in general works really well, but has one problem I cannot understand.
All markers on all overlays are displayed correctly. I van see them using the IsMouseOver functionality, etc, so they seem to be correctly created etc.
However, when I use the ZoomAndCentre function the entire application shuts down unexplicably.
I cannot reproduce this if I use the code directly from a Visual C# application, only when I use the COM component.
Does anyone perhaps have experience in creating COM components based on GMao.NET? Is there anything "special" I should be doing? Any ideas would help.
Comments: I've created an ActiveX component that wraps GMap.net that I use from a VB6 application. As well I call my unwrapped GMap.Net directly from C# and it behaves the same.. I did nothing special that I recall. My first suspicion would be that you do not have the correct interface registered for your ActiveX control. Often when you change the interface and it does not get registered correctly the consuming app will crash when it attempts to make a call to the wrong DispID or Interface. You should be able to debug the issue from both sides quite easily. You can attach to your Borland C++ app from Visual Studio to debug it from GMap side. Or you can attach the Visual Studio debugger to your Borland C++ debug environment (not sure how this works as I haven't used Borland C++ in 20 years), put a breakpoint on each side of the call to the routine that does the ZoomAndCenter and step in. If it never his the C# breakpoint then the ActiveX interface is your problem.

Viewing all articles
Browse latest Browse all 3384


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>