MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




MapPoint.exe in list of processes

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
MapPoint.exe in list of processes

Hey,

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 04-18-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Hey,

It seems that I don't have that method in C++, so I'm still having the problem, but anyway thanks for your help!

Leen
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 04-18-2003
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,322
Blog Entries: 1
It's been something like 7 years since I studied C++ and used it only rarely since then, but I think there was some way to un-instantiate or Undim/Unset or otherwise "destroy" an object (?).

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 05-08-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I am having the same issues with a COM component running in MTS. I set all objects including the Application object to Nothing. The MTS compenent remains active too.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 09-14-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 09:36 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

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!


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51