?
Solved

SERVER BUSY Dialog box in winform c#

Posted on 2011-03-03
5
Medium Priority
?
2,291 Views
Last Modified: 2013-12-17


 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.

0
Comment
Question by:rnsr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 35028106
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
0
 

Author Comment

by:rnsr
ID: 35029778
Thanks for Guiding me. let me work out on it and will respond accordingly within few days.
0
 

Author Comment

by:rnsr
ID: 35043841
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.

 
0
 

Accepted Solution

by:
rnsr earned 0 total points
ID: 35107087
not full solution but one can use timer or sleep to avoid it.
0
 

Author Closing Comment

by:rnsr
ID: 35145218
i did not find any suitable answer to this question on expert-excahnge.
0

Featured Post

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question