Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Closing: MapPoint process stilll running within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, in my C# program, I start a MapPoint instance: Code: ApplicationClass mapPointApplication = new ApplicationClass(); Now it's up to ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Closing: MapPoint process stilll running in my C# program, I start a MapPoint instance: Code: ApplicationClass mapPointApplication = new ApplicationClass(); How can I avoid that? Bye, MD |
| ||||
|
You need to make sure that you don't have any valid references in your program to any MapPoint objects, Eg. in C++ you'd call Release on a COM object to free the reference. In VB6 you set the object to "Nothing". In my experience, you have to do this before the user closes MapPoint, rather than after. Yes when I'm developing, I usually end up with a collection of zombie MapPoints that have to be cleared out every so often. Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools See the Geoweb Guru for online mapping |
| |||
|
another thing, that doesn't work: 1. My program starts a MapPoint instance. 2. The user closes the MapPoint instance from step 1. 3. My program closes the MapPointApplication form step 1 with "mapPointApp.Quit();" But now there's still a process MapPointe.exe running. What am I doing wrong? Bye, MD |
| ||||
|
Are you releasing the COM pointers? I haven't tried COM and C# so I'm not sure how it handles them. VB is clever enough to do it if you assign "Nothing". For C++ you have to hold its hand and call "Release()" before setting the pointer to NULL. Also, have you tried closing MapPoint in your program without the user being involved. This should work unless you have COM pointers dangling. Or by setting the flags to tell MapPoint that the user is in charge of quiting. This works for me (GridImp). When my program tidies up, it releases ALL MapPoint COM objects. My program closes, and MapPoint is left running for the user. It then closes properly when they want it to close. Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools See the Geoweb Guru for online mapping |
![]() |
| Tags |
| closing, mappoint, process, running, stilll |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mappoint as background process for Filemaker Pro App | Anonymous | MapPoint 2006/2009 Discussion | 8 | 03-12-2008 01:04 PM |
| MapPoint crashs after closing the application | Elbarto | MapPoint 2006/2009 Discussion | 12 | 12-30-2006 09:47 PM |
| Disabling closing of MapPoint? | MD2000 | MapPoint 2006/2009 Discussion | 1 | 05-09-2005 04:57 PM |
| Waiting for shutdown of mappoint process | Gauloisid | MapPoint 2006/2009 Discussion | 1 | 10-27-2003 07:46 AM |
| I am currently running Mappoint 2001 and will buy .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 09-19-2001 08:49 AM |
Larnaca Holiday
Take a Larnaca holiday through UlookUbook and enjoy beautiful seaside resorts and sandy beaches.