Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 9 of 9

looking for Delphi solution for the "Server Busy"

This is a discussion on looking for Delphi solution for the "Server Busy" within the MapPoint Desktop 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 ...

  1. #1
    schuchhardp is offline 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

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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:
    &#40;********************************************************************************
     Title         &#58; Procedure KillMappointInstances
     Function      &#58; Kill's all active MapPoint objects anywehere in memory
     Result        &#58; Number of instances found and terminated
     Author        &#58; Martin Beek, martin@martinbeek.net
     Uses          &#58; TLHelp32
    ********************************************************************************&#41;
    
    function KillMapPointInstances &#58; Integer;
    const
      PROCESS_TERMINATE = $0001;
      EXEFILENAME       = 'MapPoint.exe';
    var
      ContinueLoop    &#58; BOOL;
      FSnapshotHandle &#58; THandle;
      FProcessEntry32 &#58; TProcessEntry32;
    begin
      Result &#58;= 0;
      FSnapshotHandle &#58;= CreateToolhelp32Snapshot&#40;TH32CS_SNAPPROCESS, 0&#41;;
      FProcessEntry32.dwSize &#58;= SizeOf&#40;FProcessEntry32&#41;;
      ContinueLoop &#58;= Process32First&#40;FSnapshotHandle, FProcessEntry32&#41;;
    
      while Integer&#40;ContinueLoop&#41; <> 0 do
      begin
        if &#40;&#40;UpperCase&#40;ExtractFileName&#40;FProcessEntry32.szExeFile&#41;&#41; =
          UpperCase&#40;ExeFileName&#41;&#41; or &#40;UpperCase&#40;FProcessEntry32.szExeFile&#41; =
          UpperCase&#40;ExeFileName&#41;&#41;&#41; then
          Result &#58;= Integer&#40;TerminateProcess&#40;
                            OpenProcess&#40;PROCESS_TERMINATE,
                                        BOOL&#40;0&#41;,
                                        FProcessEntry32.th32ProcessID&#41;,
                                        0&#41;&#41;;
         ContinueLoop &#58;= Process32Next&#40;FSnapshotHandle, FProcessEntry32&#41;;
      end;
      CloseHandle&#40;FSnapshotHandle&#41;;
    end;

  4. #4
    Gerhard Faber is offline Junior Member Yellow Belt
    Join Date
    Jan 2006
    Posts
    13

    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

  5. #5
    digitstudios is offline Junior Member White Belt
    Join Date
    Nov 2006
    Posts
    5

    Re: looking for Delphi solution for the "Server Busy"

    Can you post a sample code please?
    Thanks

    Gianluca

  6. #6
    digitstudios is offline Junior Member White Belt
    Join Date
    Nov 2006
    Posts
    5

    Re: looking for Delphi solution for the "Server Busy"

    Quote Originally Posted by Gerhard Faber View Post
    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
    Can you post a sample code please?
    Thanks

    Gianluca

  7. #7
    dora is offline Junior Member White Belt
    Join Date
    Oct 2008
    Posts
    2

    manual

    Hello!!

    I have to use mapinfo for an exercise and I need a manual in order to understand how it works. Where can I find one and download it?

    Thanks a lot!!

  8. #8
    digitstudios is offline Junior Member White Belt
    Join Date
    Nov 2006
    Posts
    5

    Re: manual

    Quote Originally Posted by dora View Post
    Hello!!

    I have to use mapinfo for an exercise and I need a manual in order to understand how it works. Where can I find one and download it?

    Thanks a lot!!
    Hello Dora, unforunately doesn't exist a guide for it, but you can find some example on internet...

  9. #9
    dora is offline Junior Member White Belt
    Join Date
    Oct 2008
    Posts
    2

    Re: manual

    Quote Originally Posted by digitstudios View Post
    Hello Dora, unforunately doesn't exist a guide for it, but you can find some example on internet...

    Hi! Actually, this is the reason why I subscribed at the forum, looking for such examples.. Maybe, I have to check it better...
    Thanks a lot!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Solution: Server busy window after popup context menu.
    By Jeurink in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 04-06-2005, 02:32 PM
  2. Exporting "located" data points to excel
    By Jonboy in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 04-06-2005, 09:25 AM
  3. How can I open "Show or Hide places" in program
    By Chester in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-26-2004, 09:12 PM
  4. Do I need "Autoroute Europe", if I install "M
    By bigtail in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-24-2004, 12:58 AM
  5. Delphi equivalent of VB's "Dim myExampleArray(4, 2)&quo
    By schuchhardp in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 03-20-2003, 07:14 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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