• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2378
  • Last Modified:

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.

0
rnsr
Asked:
rnsr
  • 4
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
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
 
rnsrAuthor Commented:
Thanks for Guiding me. let me work out on it and will respond accordingly within few days.
0
 
rnsrAuthor Commented:
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
 
rnsrAuthor Commented:
not full solution but one can use timer or sleep to avoid it.
0
 
rnsrAuthor Commented:
i did not find any suitable answer to this question on expert-excahnge.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now