rnsr
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.
ASKER
Thanks for Guiding me. let me work out on it and will respond accordingly within few days.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i did not find any suitable answer to this question on expert-excahnge.
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