Community of VE/MapPoint Users and Developers
This is a discussion on server busy problem! within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi , I found a perfect solution on this website to solve the "server busy " error , by closing ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| server busy problem! I found a perfect solution on this website to solve the "server busy " error , by closing all running mappoint processes. Dim proc As New Process Dim procs As Process() Dim i As Integer procs = proc.GetProcessesByName("MapPoint") If procs.Length = 0 Then Return 'MP wasn't loaded, so return For i = 0 To UBound(procs) procs(i).Kill() procs(i).WaitForExit() Next This code is only working in VB.NET. Can anyone please help to give alternative code in VB6? Thanks a lot , wim |
| |||
|
Hi, Quote:
However killing the various active Mappoint instances will free up a lot of memory thus making all faster, and therefore less chance to get the 'server busy', so it is not _the_ solution to get rid of it.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| The code in C#
This was an excellent idea. I needed the same for my car navigation project, but it is written in C#, so I will post this for you: Code: Process[] procs;
procs = Process.GetProcessesByName("MapPoint") ;
if(procs.Length > 0)
{
for(int i=0;i<procs.Length;i++)
{
procs[i].Kill() ;
procs[i].WaitForExit();
}
}
|
| |||
|
Hi, or even more simple: Code: Process[] processes = Process.GetProcessesByName("MapPoint");
foreach (Process proc in processes)
proc.Kill();
However be aware that if a user has started an instance of mappoint.exe this one is killed also !
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| I Hope Next Mappoint fixes the 'Server Busy' BUG
I too have spent countless Dev hours using mappoint and love it. Recently when incorporating some longer queries, Started getting the 'Server Busy' stuff. Cannot seem to solve it as it is inconsistant. I don't want this message as the query always works and DB connection has it's own diagnostics anyway!! If their is a way to avoid this in VB6 I would be happy. Any help very much appreciated |
| |||
|
Hi, The 'server busy' msg window comes when the calling (your) application does not respond to windows messages anymore. For example you will have this a lot if you step with the debugger trough the code. Cleaning up mappoint.exe is helpfull whilst developping because a lot of time the program will not 'nice' terminating. In final fase it should not be done. About the non responsive. If your program has many things to do in a closed loop then it should be into consideration to eather optimize it for speed, or run it in a background thread context. That way to not get the 'server busy' message.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
I appreciate the reply. I do understand what is going on. A bit disappointed that this ActiveX control behaves differently than others when intercepting events. Don't get Server Busy when I step through code relating to MSChart for instance. Anyway, I did solve the problem by offloading the queries into a second thread context although I am now a little worried about side effects. Thanks ITview |
| |||
|
Hi, Executing the lenghty code in a second thread is indeed the solution. You will have no side effects if the main application dont touch the data until the thread has finished his query. a solution could be that the thread post a message to the main thread just before suspending (or destroying). the custom message handler in main thread can handle the data then.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Server is Busy | Anonymous | MapPoint 2006/2009 Discussion | 4 | 01-18-2005 03:52 AM |
| Server Busy | Sylvain | MapPoint 2006/2009 Discussion | 21 | 09-18-2004 04:25 PM |
| Timer and Server Busy | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-07-2004 02:59 AM |
| Server Busy Message fix in .Net | matnace | MapPoint 2006/2009 Discussion | 0 | 05-11-2004 11:48 AM |
| Server busy ... svchost is 99% CPU | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-17-2003 07:42 AM |
Ski Family
Have you got something of a ski family? Holiday Hypermarket has a range of destinations which will accommodate all levels of skier. Check our online travel guides.
Travel Counsellors
Travel Counsellors are an award winning Travel Agent. Have a personal Travel Counsellor help with your travel plans.
Cuba Holidays
After years of neglect by the western world, Cuba is coming back onto the holiday scene. Cuba Holidays are a unique and enjoyable experience. Book at dealchecker.co.uk.
Holidays in Cyprus
Holidays in Cyprus are enriched by the abundance of churches, ruins and natural wonders. Book a holiday with us today!
Cheap Turkey Holidays
The best time of year to sneak in cheap Turkey holidays is during the off-peak season. Check out the great deals available during April, May or October. For other tips on how to bag a great value holiday simply check online at ulookubook.com
Travel Tickets
Travel tickets need not always be expensive. Check out your best travel comparison site, Travel.co.uk
Cheap holidays to Portugal
Enjoy a spectacular country at a fraction of the cost. Find information on cheap holidays to Portugal at On The Beach.