Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

SERVER BUSY Dialog box in winform c#

Posted on 2011-03-03
5
Medium Priority
?
2,336 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Viewers will learn the different options available in the Backstage view in Excel 2013.
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…

618 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