Community of VE/MapPoint Users and Developers
This is a discussion on MapPoint.exe in list of processes within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hey, I'm very new to MapPoint. I'm using it from BCB6. And I have the following problem: I execute my ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| MapPoint.exe in list of processes I'm very new to MapPoint. I'm using it from BCB6. And I have the following problem: I execute my C++program, in this program I run MapPoint. Everything works fine, but when I close the MapPoint application and my application, MapPoint.exe stays in the list of processes on my PC. I'm using Tapp to start MapPoint. Can anyone tell me how to prevent MapPoint from staying in my memory? Thanks in advance! Leen |
| |||
|
Hi Leen, I had the same in Delphi. Since I only need a map object to do my stuff, I now use: mymap:=TMap.Create(myForm); ... mymap.destroy; This also creates a mapPoint.exe process, but it disappears afterwards. With the Map object you can do a lot of stuff. Hope this helps for you. Pascal |
| |||
| Kill all Mappoint instances before you run your app
Hi all. I encounter the same problems after a program crash or debugger program halt. I have written a small function that kills all instances of the Mappoint object in memory, so your app will restart OK. It is in Delphi, so i hope that you can translate it in C. That should be no problem i guess, since most of the code is Windows system stuff anyway. Hope this helps a bit... Cheers. Martin. Code: (******************************************************************************** Title : Procedure KillMappointInstances Function : Kill's all active MapPoint objects anywehere in memory Result : Number of instances found and terminated Author : Martin Beek, martin@martinbeek.net Uses : TLHelp32 ********************************************************************************) function KillMapPointInstances : Integer; const PROCESS_TERMINATE = $0001; EXEFILENAME = 'MapPoint.exe'; var ContinueLoop : BOOL; FSnapshotHandle : THandle; FProcessEntry32 : TProcessEntry32; begin Result := 0; FSnapshotHandle := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); FProcessEntry32.dwSize := SizeOf(FProcessEntry32); ContinueLoop := Process32First(FSnapshotHandle, FProcessEntry32); while Integer(ContinueLoop) <> 0 do begin if ((UpperCase(ExtractFileName(FProcessEntry32.szExeFile)) = UpperCase(ExeFileName)) or (UpperCase(FProcessEntry32.szExeFile) = UpperCase(ExeFileName))) then Result := Integer(TerminateProcess( OpenProcess(PROCESS_TERMINATE, BOOL(0), FProcessEntry32.th32ProcessID), 0)); ContinueLoop := Process32Next(FSnapshotHandle, FProcessEntry32); end; CloseHandle(FSnapshotHandle); end; |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Getting MapPoint (ActiveX) to export a city's street list | BobFromBoston | MapPoint 2006/2009 Discussion | 1 | 11-08-2005 07:02 PM |
| Multiple mappoint processes with Delphi 6 | dradey | MapPoint 2006/2009 Discussion | 3 | 01-18-2005 12:55 PM |
| Can I export a name list from mappoint | billholden | MapPoint 2006/2009 Discussion | 1 | 10-28-2003 04:25 AM |
| MapPoint Wish List Items | Harv | Wish List | 1 | 07-08-2003 01:28 PM |
| Looking for MapPoint Programming Resource list | MarkE | MapPoint 2006/2009 Discussion | 5 | 12-10-2002 10:34 PM |
Cheap Ski Holidays Canada
Book cheap ski holidays to Canada online at Holiday Hypermarket. Why not use our simple ski holiday search to find the cheapest deals?
Spain Holidays
Find great Spain Holidays with Travel Counsellors. A personal Travel Counsellor can help you plan the perfect holiday to Spain.
Jamaica Holiday
Fancy a Jamaica Holiday? Then visit dealchecker.co.uk and find out what the big deal is. Book a bargain when you book online.
Holidays in Dubai
Holidays in Dubai are an eclectic mix of the ancient and the modern. Discover an oasis of luxury amid the Arabian desert. Book here now!
Cheap Morocco Holidays
Cheap Morocco holidays may be the answer to your cheap holiday search. With sunshine throughout most of the year it can be great value if you avoid the peak season. Why not include a trip to the small tranquil town of Chefchaouen Tangier in your visit?
Compare holiday prices
Compare holiday prices online where you can see all the possibilities at Travel.co.uk
Fuerteventura Holidays
Visit one of the closest Canary Islands to Africa! Book Fuerteventura holidays at On The Beach!