MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Waiting for shutdown of mappoint process

This is a discussion on Waiting for shutdown of mappoint process within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, I work on integration of MapPoint 2002 and Delphi. Because the OCX doesn't work, i've used the method explained ...


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

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-22-2003
Junior Member
White Belt
 
Join Date: Oct 2003
Posts: 4
Waiting for shutdown of mappoint process

Hello,

I work on integration of MapPoint 2002 and Delphi.
Because the OCX doesn't work, i've used the method explained
in this article :
http://www.mp2kmag.com/a65-delphi.example.mappoint.html

It work fine until i try to close my application, so the only way i've found is to make a delay after destroying object.
Like this :

procedure TFMain.FormClose(Sender: TObject; var Action: TCloseAction);
var
i: Integer;
begin
Carte:= nil;
OleContainer.DestroyObject;
OleContainer.UpdateObject;
OleContainer.Update;
OleContainer.UpdateControlState;

for i:=0 to 10000 do
Forms.Application.ProcessMessages;

Action:= caFree;
end;

I'm not proud with this code but it work, maybe someone have a better idea ?

I've also try to find the handle of the mappoint process and wait until it
not closed.

Thanks in advance...
and sorry for my english
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 10-27-2003
Junior Member
White Belt
 
Join Date: Oct 2003
Posts: 4
No more problems :
http://www.mp2kmag.com/mappoint/disc...ghlight=delphi
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

Tags
mappoint, process, shutdown, waiting


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
Mappoint as background process for Filemaker Pro App Anonymous MapPoint 2006/2009 Discussion 8 03-12-2008 01:04 PM
Closing: MapPoint process stilll running MD2000 MapPoint 2006/2009 Discussion 4 04-29-2005 08:58 AM
MP process priority mgravell MapPoint 2006/2009 Discussion 2 03-24-2005 12:38 PM
Embedding MapPoint Install Process in Our Software Install jbendiner MapPoint 2006/2009 Discussion 1 12-30-2004 01:50 PM
I am new to map point. I am in the process of doi.... Anonymous MapPoint 2006/2009 Discussion 1 07-01-2002 02:09 PM


All times are GMT -5. The time now is 03:20 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Costa Brava Holiday
Beautiful kilometres of sandy beaches await you should you choose a Costa Brava holiday through UlookUbook!



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 52 53 54 55 56 57 58 59