I am currently working on a MapInfo-based application using .NET and Visual Studio 2017. The application is developed with C#.NET Framework 4.7.2 on a Windows 10 system. The goal is to interact with MapInfo Professional to perform specific tasks. However, I am encountering challenges while creating the MapInfo instance in the 2023 version.
The same code or approach worked fine in earlier versions, but in this version, the MapInfo instance is not initializing as expected.
Here are the details of the problem:
Environment:
Issue: When attempting to create the MapInfo instance, the initialization process fails. The instance is not created, and the application cannot proceed further. No specific error messages are displayed.
Expected Outcome: The MapInfo instance should initialize correctly, enabling interaction as intended.
Troubleshooting Attempts: I have tried using various DLLs provided with MapInfo Professional 2023 to address potential compatibility or functionality issues, but the problem persists.
Has anyone else experienced similar issues with the 2023 version? Are there any changes in the DLLs, or initialization process specific to this version? Could the issue be related to the .NET framework version or Visual Studio compatibility? Any guidance or suggestions would be greatly appreciated.
Hey Jayant
In the IntegratedMappingWpf example that comes with MapBasic v2023, I can see the MapInfo Pro is initiated using this statement:
// Initialize the IMapInfoApplication interface.
Application = MapInfoCore.Initialize(this, this);
if (Application == null)
{
return;
}
We do supply four samples with MapBasic.
Can you check them out and see if this approach works for you?
I can’t tell from you screenshot if this is calling a constructor of your own?
_MIApp = new MapInfoApplication()
Cheers
Peter
From: mapi...@googlegroups.com <mapi...@googlegroups.com>
On Behalf Of Jayant Grover
Sent: 7. januar 2025 10:09
To: MapInfo-L <mapi...@googlegroups.com>
Subject: [MI-L] Problem Statement: Issues with Creating a MapInfo Instance in MapInfo 2023
This message originated Externally. Use proper judgement and caution with attachments, links, or responses. |
MapmyIndia goes global & introduces Mappls
--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en
---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
mapinfo-l+...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/mapinfo-l/94408d7d-76af-46a6-b7fd-09b5d8105114n%40googlegroups.com.
The samples provided by MapInfo demonstrate creating instances for integrated MapInfo . Alternatively, We have initialized MapInfo using its registry ID which is compatible with MapInfo 16.0 and MapInfo 2023
Please find the attached code for reference.