Link to home
Start Free TrialLog in
Avatar of rnsr
rnsrFlag for India

asked on

SERVER BUSY Dialog box in winform c#



 I am getting "server busy" dialog box with message "This action cannot be completed because
      the "*" program is not responding. Choose "Switch To" and correct the probelm."
   I am using winform c# with MAPPOOINT WITH ORACLE DATABASE.

I want to supress this dialog box. ..

Thanks in Advance.

Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

You don't want to suppress that box...it's telling you that your application was designed in such a way that has made it unresponsive.  This is un-elegant and can lead to people thinking your app has crashed and they may simply kill it with the task manager.

It sounds like you need to use multi-threading to move the heavy processing off your main UI thread so it remains responsive.  The most likely culprits are when you hit the database.  Move those queries to another thread.  The easiest way to accomplish this is to use the BackgroundWorker() control:
http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx
Avatar of rnsr

ASKER

Thanks for Guiding me. let me work out on it and will respond accordingly within few days.
Avatar of rnsr

ASKER

hI.
    alternatively i will look for the solution - The steps to invoke the program as -
  1. get record form database
    2. get latitude and longitude form mappoint of the ecord
   3. after that invoke oracle procedure to run oracle procedure
    In this process it gives me error dialog box of  "Server Busy"
   So i want that when one step in completed then the program should execute nest Step.

Thanks in Advance.

 
ASKER CERTIFIED SOLUTION
Avatar of rnsr
rnsr
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rnsr

ASKER

i did not find any suitable answer to this question on expert-excahnge.