View Single Post

  #1 (permalink)  
Old 04-22-2004
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
server busy problem!

Hi ,

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
Reply With Quote