Solved

SERVER BUSY Dialog box in winform c#

Posted on 2011-03-03
5
2,182 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
  • 4
5 Comments
 
LVL 85

Expert Comment

by:Mike Tomlinson
Comment Utility
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
Comment Utility
Thanks for Guiding me. let me work out on it and will respond accordingly within few days.
0
 

Author Comment

by:rnsr
Comment Utility
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
Comment Utility
not full solution but one can use timer or sleep to avoid it.
0
 

Author Closing Comment

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

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Viewers will learn the different options available in the Backstage view in Excel 2013.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now