MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




looking for Delphi solution for the "Server Busy"

This is a discussion on looking for Delphi solution for the "Server Busy" within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I also get the infamous "server Busy" dialog for my Delphi program that is running 24/7. I'm looking for the ...


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-29-2004
Junior Member
White Belt
 
Join Date: Nov 2002
Posts: 10
looking for Delphi solution for the "Server Busy"

I also get the infamous "server Busy" dialog for my Delphi program that is running 24/7. I'm looking for the Delphi equivilent of the "OleRequestPendingTimeout = a_large_value" VB-statement.

I've looked through my Delphi manuals, but they are no help. Has anyone found a solution?

Thanks,
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
  #2 (permalink)  
Old 04-30-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
OleRequestPendingTimeout

Bad new, it can't be done.

We are VERY well versed with the MapPoint control and have cleared countless hurdles with the product. The MP control simply does not properly expose / respond to new implementations of IMessageFilter as it should.

Since the Server Busy dialog always appears on top, our workaround was to set a timer to periodically check for the appearance of the ServerBusy dialog (just look through the active window handles) and bring our application to the front if it's found. It basically covers up the dialog while the operation completes and MP happily puts it away afterwards.

Equivalently, you can try hiding the Server Busy dialog when it appears, but I have vague memories of something not working with that technique.

In short, you can't trap the error, so just hide it. I rarely check these forums anymore, but feel free to email me directly:

zdigriz<ignore this part>@mobileiq.biz

Cheers,
Chris
VP Sales & Marketing
MobileIQ, LLC
www.mobileiq.biz
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 09-14-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
How to kill a Mappoint...

Hi.

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.

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
  #4 (permalink)  
Old 05-07-2007
Junior Member
Yellow Belt
 
Join Date: Jan 2006
Posts: 12
Re: looking for Delphi solution for the "Server Busy"

Hi,

I assigned a new MessageFilter with "CoRegisterMessageFilter" and the "server is busy" Dlg is never shown again.

"http://msdn2.microsoft.com/en-us/library/ms693324.aspx"
"http://delphi.newswhat.com/geoxml/forumhistorythread?groupname=borland.public.delphi .oleautomation&messageid=43a2d4ec$1@newsgroups.bor land.com"

regards
Gerhard
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
Solution: Server busy window after popup context menu. Jeurink MapPoint 2006/2009 Discussion 6 04-06-2005 01:32 PM
Exporting "located" data points to excel Jonboy MapPoint 2006/2009 Discussion 2 04-06-2005 08:25 AM
How can I open "Show or Hide places" in program Chester MapPoint 2006/2009 Discussion 1 09-26-2004 08:12 PM
Do I need "Autoroute Europe", if I install "M bigtail MapPoint 2006/2009 Discussion 1 03-23-2004 11:58 PM
Delphi equivalent of VB's "Dim myExampleArray(4, 2)&quo schuchhardp MapPoint 2006/2009 Discussion 2 03-20-2003 06:14 AM


All times are GMT -5. The time now is 10:32 PM.


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

Skiing Package
For that perfect skiing package visit Holiday Hypermarket. Search for ski holidays according to your specific requirements online. Holiday Hypermarket makes it simple and rapid.

Family Holidays
Family holidays, ski holidays, cruises, luxury holidays. Whatever your travel needs your personal Travel Counsellor can help.

Holidays in Italy
Holidays in Italy boast some stunning countryside as well as a beautiful coastline. You can even visit an active volcano like Stromboli or Etna. Book at dealchecker.co.uk.

Holidays to Bahamas
Choose from a number of extraordinary holidays to the Bahamas at The Holiday Place. See pictures of these beautiful islands online.

Cheap Portugal Holidays
Want to know what the best time to book cheap Portugal holidays is? Well have a look on ulookubook.com for some useful information to save your cash. Golf, tennis and cycling are all very popular here.

Travel
Check out the travel options on Travel.co.uk.

Cheap Holidays to Gran Canaria
Book a flight to the Canary Islands! View information on cheap holidays to Gran Canaria online 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